1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp Wed Jun 30 11:52:10 2010 -0400 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.hpp Thu Jul 01 21:40:45 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -1297,11 +1297,8 @@ 1.11 T heap_oop = oopDesc::load_heap_oop(p); 1.12 if (!oopDesc::is_null(heap_oop)) { 1.13 oop obj = oopDesc::decode_heap_oop_not_null(heap_oop); 1.14 - if (mark_bitmap()->is_unmarked(obj)) { 1.15 - if (mark_obj(obj)) { 1.16 - // This thread marked the object and owns the subsequent processing of it. 1.17 - cm->save_for_scanning(obj); 1.18 - } 1.19 + if (mark_bitmap()->is_unmarked(obj) && mark_obj(obj)) { 1.20 + cm->push(obj); 1.21 } 1.22 } 1.23 }