The G1ArchiveAllocator is used to provide allocation services during CDS archive dump time.
The _archive_allocator instance in G1CollectedHeap is always instantiated before and deleted after that dumping process. During actual execution it is always NULL.
However there are several places which look as follows:
if (_archive_allocator != NULL) {
_archive_allocator->do_something;
}
In all these cases _archive_allocator is always NULL. Remove this unnecessary code.
The _archive_allocator instance in G1CollectedHeap is always instantiated before and deleted after that dumping process. During actual execution it is always NULL.
However there are several places which look as follows:
if (_archive_allocator != NULL) {
_archive_allocator->do_something;
}
In all these cases _archive_allocator is always NULL. Remove this unnecessary code.
- relates to
-
JDK-8272978 Factor out g1 young collection specific data structures
-
- Open
-