mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-16 08:29:34 +00:00
8061630: G1 iterates over JNIHandles two times
Reviewed-by: mgerdin, brutisso
This commit is contained in:
parent
27e9dd8a8d
commit
3a3e45ab40
@ -5760,14 +5760,10 @@ void G1CollectedHeap::evacuate_collection_set(EvacuationInfo& evacuation_info) {
|
||||
// not copied during the pause.
|
||||
process_discovered_references(n_workers);
|
||||
|
||||
// Weak root processing.
|
||||
{
|
||||
if (G1StringDedup::is_enabled()) {
|
||||
G1STWIsAliveClosure is_alive(this);
|
||||
G1KeepAliveClosure keep_alive(this);
|
||||
JNIHandles::weak_oops_do(&is_alive, &keep_alive);
|
||||
if (G1StringDedup::is_enabled()) {
|
||||
G1StringDedup::unlink_or_oops_do(&is_alive, &keep_alive);
|
||||
}
|
||||
G1StringDedup::unlink_or_oops_do(&is_alive, &keep_alive);
|
||||
}
|
||||
|
||||
_allocator->release_gc_alloc_regions(n_workers, evacuation_info);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user