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

InheritableThreadLocal method childValue works intermittently.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.2
    • core-libs
    • sparc
    • solaris_2.6

      The class InheritableThreadLocal adds a routine childValue() that is
      supposed to initialize the thread local storage in a child thread.
      It does not always work.

      Source code is attached.
      Machine and OS information is attached.

      Failure is intermittent with JDK 1.2.2 build D. The test has never succeeded
      with builds M and O.

      algol% setenv THREADS_FLAG native
      algol% /net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2.2_O/bin/java ThreadTest
      Thread 4 failed in testThreadLocal_I in TestInheritableLocalStorage.
      4 4.0
      2 2.0
      Cycle=0 Pass=false
      algol% /net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2.2_M/bin/java ThreadTest
      Thread 4 failed in testThreadLocal_I in TestInheritableLocalStorage.
      4 4.0
      2 2.0
      Cycle=0 Pass=false
      algol% /net/mulder.eng/export/mulder3/jdk12x/sparc/jdk1.2.2_D/bin/java ThreadTest
      Cycle=0 Pass=true
      Cycle=1 Pass=true
      Cycle=2 Pass=true
      Cycle=3 Pass=true
      Cycle=4 Pass=true
      Cycle=5 Pass=true
      Cycle=6 Pass=true
      Cycle=7 Pass=true
      Thread 4 failed in testThreadLocal_I in TestInheritableLocalStorage.
      4 4.0
      1000 1000.0
      Cycle=8 Pass=false

      allan.jacobs@Eng 1999-04-26

            jjb Josh Bloch (Inactive)
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: