mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6944166: G1: explicit GCs are not always handled correctly
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
This commit is contained in:
parent
968deb7658
commit
dfc84e8c89
12 changed files with 291 additions and 71 deletions
|
@ -86,9 +86,7 @@ class VM_GC_Operation: public VM_Operation {
|
|||
|
||||
_gc_locked = false;
|
||||
|
||||
if (full) {
|
||||
_full_gc_count_before = full_gc_count_before;
|
||||
}
|
||||
_full_gc_count_before = full_gc_count_before;
|
||||
// In ParallelScavengeHeap::mem_allocate() collections can be
|
||||
// executed within a loop and _all_soft_refs_clear can be set
|
||||
// true after they have been cleared by a collection and another
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue