8243301: Shenandoah: ditch ShenandoahAllowMixedAllocs
Reviewed-by: rkennke
This commit is contained in:
parent
8e21a2a1e4
commit
91d204780d
@ -125,18 +125,10 @@ HeapWord* ShenandoahFreeSet::allocate_single(ShenandoahAllocRequest& req, bool&
|
||||
}
|
||||
}
|
||||
|
||||
// Try to mix the allocation into the mutator view:
|
||||
if (ShenandoahAllowMixedAllocs) {
|
||||
for (size_t c = _mutator_rightmost + 1; c > _mutator_leftmost; c--) {
|
||||
size_t idx = c - 1;
|
||||
if (is_mutator_free(idx)) {
|
||||
HeapWord* result = try_allocate_in(_heap->get_region(idx), req, in_new_region);
|
||||
if (result != NULL) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// No dice. Do not try to mix mutator and GC allocations, because
|
||||
// URWM moves due to GC allocations would expose unparsable mutator
|
||||
// allocations.
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -211,10 +211,6 @@
|
||||
diagnostic(bool, ShenandoahElasticTLAB, true, \
|
||||
"Use Elastic TLABs with Shenandoah") \
|
||||
\
|
||||
diagnostic(bool, ShenandoahAllowMixedAllocs, true, \
|
||||
"Allow mixing mutator and collector allocations into a single " \
|
||||
"region. Some heuristics enable/disable it for their needs") \
|
||||
\
|
||||
experimental(uintx, ShenandoahEvacReserve, 5, \
|
||||
"How much of heap to reserve for evacuations. Larger values make "\
|
||||
"GC evacuate more live objects on every cycle, while leaving " \
|
||||
|
Loading…
x
Reference in New Issue
Block a user