JDK-8047125 separated processing of j.l.ref.PhantomReference and Cleaner into two separate phases during reference processing.
This resulted in -XX:+PrintReferenceGC output to be scrambled slightly, adding a new "refs: <count>" string to the PhantomReference section.
Example:
7.642: [SoftReference, 0 refs, 0.0006965 secs]7.643: [WeakReference, 40 refs, 0.0003039 secs]7.643: [FinalReference, 3477 refs, 0.0036191 secs]7.647: [PhantomReference, 0 refs, 0 refs, 0.0006649 secs]7.647: [JNI Weak Reference, 0.0000119 secs], 0.0173298 secs]
Cleaners should have their own section in the printout.