Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/shared/vmGCOperations.hpp @ 1656:4e5661ba9d98
6944166: G1: explicit GCs are not always handled correctly
Summary: G1 was not handling explicit GCs correctly in many ways. It does now. See the CR for the list of improvements contained in this changeset.
Reviewed-by: iveresov, ysr, johnc
author | tonyp |
---|---|
date | Mon, 28 Jun 2010 14:13:17 -0400 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1655:e7ec8cd4dd8a | 1656:4e5661ba9d98 |
---|---|
84 // A subclass constructor will likely overwrite the following | 84 // A subclass constructor will likely overwrite the following |
85 _gc_cause = GCCause::_no_cause_specified; | 85 _gc_cause = GCCause::_no_cause_specified; |
86 | 86 |
87 _gc_locked = false; | 87 _gc_locked = false; |
88 | 88 |
89 if (full) { | 89 _full_gc_count_before = full_gc_count_before; |
90 _full_gc_count_before = full_gc_count_before; | |
91 } | |
92 // In ParallelScavengeHeap::mem_allocate() collections can be | 90 // In ParallelScavengeHeap::mem_allocate() collections can be |
93 // executed within a loop and _all_soft_refs_clear can be set | 91 // executed within a loop and _all_soft_refs_clear can be set |
94 // true after they have been cleared by a collection and another | 92 // true after they have been cleared by a collection and another |
95 // collection started so that _all_soft_refs_clear can be true | 93 // collection started so that _all_soft_refs_clear can be true |
96 // when this collection is started. Don't assert that | 94 // when this collection is started. Don't assert that |