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

(ref) jdk.lang.ref.disableClearBeforeEnqueue property is ignored

    XMLWordPrintable

Details

    • b167
    • generic
    • generic
    • Verified

    Backports

      Description

        JDK-8175797 changed Reference.enqueue to clear the reference object before adding it to its associated queue. For backward compatibility, the property jdk.lang.ref.disableClearBeforeEnqueue was introduced to allow reverting to the old behavior.

        Unfortunately, due to bootstrapping problems, the value of that property is always ignored. The Reference class's initializer attempts to get the property value, but at that point the property mechanism is not yet ready for use. That failure is silently ignored because it occurs in Boolean.getBoolean, which silently swallows the NullPointerExcepion resulting from the too early access. As a result, it is not possible to revert to the old behavior.

        Attachments

          Issue Links

            Activity

              People

                kbarrett Kim Barrett
                kbarrett Kim Barrett
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: