mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8071507: (ref) Clear phantom reference as soft and weak references do
GC clears phantom refs on notification; update spec accordingly. Reviewed-by: mchung, jmasa
This commit is contained in:
parent
4d2c80f12e
commit
1b5adfa949
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(
|
|||
|
||||
// Final references
|
||||
{
|
||||
GCTraceTime(Debug, gc, ref) tt("FinalReference", gc_timer);
|
||||
GCTraceTime(Debug, gc, ref) tt("FinalReference", gc_timer);
|
||||
process_discovered_reflist(_discoveredFinalRefs, NULL, false,
|
||||
is_alive, keep_alive, complete_gc, task_executor);
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(
|
|||
// Phantom references
|
||||
{
|
||||
GCTraceTime(Debug, gc, ref) tt("PhantomReference", gc_timer);
|
||||
process_discovered_reflist(_discoveredPhantomRefs, NULL, false,
|
||||
process_discovered_reflist(_discoveredPhantomRefs, NULL, true,
|
||||
is_alive, keep_alive, complete_gc, task_executor);
|
||||
|
||||
// Process cleaners, but include them in phantom timing. We expect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue