8278893: Parallel: Remove GCWorkerDelayMillis
Reviewed-by: ayang, mli
This commit is contained in:
parent
517967284c
commit
ff5d41762d
@ -55,9 +55,6 @@
|
|||||||
"limiter (a number between 0-100)") \
|
"limiter (a number between 0-100)") \
|
||||||
range(0, 100) \
|
range(0, 100) \
|
||||||
\
|
\
|
||||||
develop(uintx, GCWorkerDelayMillis, 0, \
|
|
||||||
"Delay in scheduling GC workers (in milliseconds)") \
|
|
||||||
\
|
|
||||||
product(bool, PSChunkLargeArrays, true, \
|
product(bool, PSChunkLargeArrays, true, \
|
||||||
"Process large arrays in chunks")
|
"Process large arrays in chunks")
|
||||||
|
|
||||||
|
@ -165,7 +165,6 @@ void PSCardTable::scavenge_contents_parallel(ObjectStartArray* start_array,
|
|||||||
uint stripe_number,
|
uint stripe_number,
|
||||||
uint stripe_total) {
|
uint stripe_total) {
|
||||||
int ssize = 128; // Naked constant! Work unit = 64k.
|
int ssize = 128; // Naked constant! Work unit = 64k.
|
||||||
int dirty_card_count = 0;
|
|
||||||
|
|
||||||
// It is a waste to get here if empty.
|
// It is a waste to get here if empty.
|
||||||
assert(sp->bottom() < sp->top(), "Should not be called if empty");
|
assert(sp->bottom() < sp->top(), "Should not be called if empty");
|
||||||
@ -195,16 +194,6 @@ void PSCardTable::scavenge_contents_parallel(ObjectStartArray* start_array,
|
|||||||
HeapWord* slice_start = addr_for(worker_start_card);
|
HeapWord* slice_start = addr_for(worker_start_card);
|
||||||
HeapWord* slice_end = MIN2((HeapWord*) sp_top, addr_for(worker_end_card));
|
HeapWord* slice_end = MIN2((HeapWord*) sp_top, addr_for(worker_end_card));
|
||||||
|
|
||||||
#ifdef ASSERT
|
|
||||||
if (GCWorkerDelayMillis > 0) {
|
|
||||||
// Delay 1 worker so that it proceeds after all the work
|
|
||||||
// has been completed.
|
|
||||||
if (stripe_number < 2) {
|
|
||||||
os::naked_sleep(GCWorkerDelayMillis);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If there are not objects starting within the chunk, skip it.
|
// If there are not objects starting within the chunk, skip it.
|
||||||
if (!start_array->object_starts_in_range(slice_start, slice_end)) {
|
if (!start_array->object_starts_in_range(slice_start, slice_end)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -219,13 +219,6 @@ inline oop PSPromotionManager::copy_unmarked_to_survivor_space(oop o,
|
|||||||
|
|
||||||
HeapWord* lab_base = old_gen()->allocate(OldPLABSize);
|
HeapWord* lab_base = old_gen()->allocate(OldPLABSize);
|
||||||
if(lab_base != NULL) {
|
if(lab_base != NULL) {
|
||||||
#ifdef ASSERT
|
|
||||||
// Delay the initialization of the promotion lab (plab).
|
|
||||||
// This exposes uninitialized plabs to card table processing.
|
|
||||||
if (GCWorkerDelayMillis > 0) {
|
|
||||||
os::naked_sleep(GCWorkerDelayMillis);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
_old_lab.initialize(MemRegion(lab_base, OldPLABSize));
|
_old_lab.initialize(MemRegion(lab_base, OldPLABSize));
|
||||||
// Try the old lab allocation again.
|
// Try the old lab allocation again.
|
||||||
new_obj = cast_to_oop(_old_lab.allocate(new_obj_size));
|
new_obj = cast_to_oop(_old_lab.allocate(new_obj_size));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user