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

Replace the use of ThreadTracker with ScopedValue in java.util.jar.JarFile

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None

      The implementation in java.util.jar.JarFile, when initializing a JarVerifier uses the jdk.internal.misc.ThreadTracker to keep track of and prevent re-entrancy.

      ThreadTracker was a temporary mechanism. ScopedValue has been delivered as a permanent Java SE feature in Java 25 (JDK-8352695).

      Re-entrancy can be tracked using a ScopedValue. The JarFile implementation should move away from ThreadTracker and instead use ScopedValue in its place.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: