mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6916623: Align object to 16 bytes to use Compressed Oops with java heap up to 64Gb
Added new product ObjectAlignmentInBytes flag to control object alignment. Reviewed-by: twisti, ysr, iveresov
This commit is contained in:
parent
05b4f2e796
commit
cc18a50e59
29 changed files with 222 additions and 136 deletions
|
@ -2523,14 +2523,14 @@ record_concurrent_mark_cleanup_end(size_t freed_bytes,
|
|||
}
|
||||
if (ParallelGCThreads > 0) {
|
||||
const size_t OverpartitionFactor = 4;
|
||||
const size_t MinChunkSize = 8;
|
||||
const size_t ChunkSize =
|
||||
const size_t MinWorkUnit = 8;
|
||||
const size_t WorkUnit =
|
||||
MAX2(_g1->n_regions() / (ParallelGCThreads * OverpartitionFactor),
|
||||
MinChunkSize);
|
||||
MinWorkUnit);
|
||||
_collectionSetChooser->prepareForAddMarkedHeapRegionsPar(_g1->n_regions(),
|
||||
ChunkSize);
|
||||
WorkUnit);
|
||||
ParKnownGarbageTask parKnownGarbageTask(_collectionSetChooser,
|
||||
(int) ChunkSize);
|
||||
(int) WorkUnit);
|
||||
_g1->workers()->run_task(&parKnownGarbageTask);
|
||||
|
||||
assert(_g1->check_heap_region_claim_values(HeapRegion::InitialClaimValue),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue