mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +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
|
@ -243,7 +243,7 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(
|
||||||
// Phantom references
|
// Phantom references
|
||||||
{
|
{
|
||||||
GCTraceTime(Debug, gc, ref) tt("PhantomReference", gc_timer);
|
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);
|
is_alive, keep_alive, complete_gc, task_executor);
|
||||||
|
|
||||||
// Process cleaners, but include them in phantom timing. We expect
|
// Process cleaners, but include them in phantom timing. We expect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue