mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 04:30:06 +00:00
8199674: Improve G1 Full GC array marking
Reviewed-by: tschatzl, shade
This commit is contained in:
parent
f48c339805
commit
337673528e
@ -107,6 +107,11 @@ void G1FullGCMarker::follow_array_chunk(objArrayOop array, int index) {
|
||||
const int stride = MIN2(len - beg_index, (int) ObjArrayMarkingStride);
|
||||
const int end_index = beg_index + stride;
|
||||
|
||||
// Push the continuation first to allow more efficient work stealing.
|
||||
if (end_index < len) {
|
||||
push_objarray(array, end_index);
|
||||
}
|
||||
|
||||
array->oop_iterate_range(mark_closure(), beg_index, end_index);
|
||||
|
||||
if (VerifyDuringGC) {
|
||||
@ -117,10 +122,6 @@ void G1FullGCMarker::follow_array_chunk(objArrayOop array, int index) {
|
||||
assert(false, "Failed");
|
||||
}
|
||||
}
|
||||
|
||||
if (end_index < len) {
|
||||
push_objarray(array, end_index); // Push the continuation.
|
||||
}
|
||||
}
|
||||
|
||||
inline void G1FullGCMarker::follow_object(oop obj) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user