Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189359

Move native weak oops cleaning out of ReferenceProcessor

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b31

      Description

      Currently there are a number of places in the code where we deal with root scanning and unlinking of "native weak" oops. One of those places where it's convenient to add native weak oops to is the ReferenceProcessor.

      The ReferenceProcessor is mainly dealing with the Java weak references in java.lang.ref References, but it also helps out by also cleaning the JNI global weak handles.

      I'd like to clean this up so that the ReferenceProcessor *only* deals with the Java level java.lang.ref References.

      At the same time, new sets of native weak oops are being add to the VM and we need a convenient place to add them without having to change all our GCs. So, I propose that we create a new class, WeakProcessor, where both the JNI global weak handles and the new native weak oops are dealt with.

        Attachments

          Activity

            People

            • Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: