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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b167
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        JDK-8175797 changed Reference.enqueue to clear the referent before adding the reference 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

                • Assignee:
                  kbarrett Kim Barrett
                  Reporter:
                  kbarrett Kim Barrett
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: