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

InheritableThreadLocal method childValue works intermittently.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: