RFR: 8189359: Move native weak oops cleaning out of ReferenceProcessor

Stefan Karlsson stefan.karlsson at oracle.com
Mon Oct 16 14:14:27 UTC 2017

Hi all,

Please review this patch to move the JNI global weak handle processing 
out of the ReferenceProcessor into a new class, WeakProcessor, that will 
be used to gather processing and cleaning of "native weak" oops.

After this patch the ReferenceProcessor will only deal with the Java 
level java.lang.ref weak references.


Note this patch only moves the JNIHandles::weak_oops_do calls into the 
new WeakProcessor. A subsequent patch for JDK-8189359 will move the 
JvmtiExport::weak_oops_do from JNIHandleBlock into the WeakProcessor.

Future patches like JDK-8171119, for example, will be able to add it's 
set of native weak oops into the new WeakProcessor functions and won't 
have to duplicate the code for all GCs or add call inside the 

Tested with JPRT.


More information about the hotspot-dev mailing list