1.1 --- a/src/share/vm/gc_implementation/g1/g1MarkSweep.cpp Thu Aug 21 23:38:19 2008 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/g1MarkSweep.cpp Fri Aug 22 11:48:25 2008 -0700 1.3 @@ -50,6 +50,10 @@ 1.4 1.5 allocate_stacks(); 1.6 1.7 + // We should save the marks of the currently locked biased monitors. 1.8 + // The marking doesn't preserve the marks of biased objects. 1.9 + BiasedLocking::preserve_marks(); 1.10 + 1.11 mark_sweep_phase1(marked_for_unloading, clear_all_softrefs); 1.12 1.13 if (G1VerifyConcMark) { 1.14 @@ -67,7 +71,7 @@ 1.15 mark_sweep_phase4(); 1.16 1.17 GenMarkSweep::restore_marks(); 1.18 - 1.19 + BiasedLocking::restore_marks(); 1.20 GenMarkSweep::deallocate_stacks(); 1.21 1.22 // We must invalidate the perm-gen rs, so that it gets rebuilt.