8199674: Improve G1 Full GC array marking

Reviewed-by: tschatzl, shade
This commit is contained in:
Stefan Johansson 2018-03-15 11:58:58 +01:00
parent f48c339805
commit 337673528e

View File

@ -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) {