Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6690

java.lang.InheritableThreadLocal didn't set java.lang.Thread

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0M15
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      all
    • Estimated Complexity:
      Unknown

      Description

      /harmony/enhanced/java/trunk/drlvm/vm/vmcore/src/kernel_classes/javasrc/java/lang/ThreadLocal.java
      uses localValues field of thread. InheritableThreadLocal should use inheritableValues in initValues() and
      values() method.

      =============
      Thread:
      157 /*
      158 * ThreadLocal values: local and inheritable
      159 *
      160 */
      161 ThreadLocal.Values localValues;
      162 ThreadLocal.Values inheritableValues;
      ================
      ThreadLocal:
      100 /**
      101 * Creates Values instance for this thread and variable type.
      102 */
      103 Values initializeValues(Thread current)

      { 104 return current.localValues = new Values(); 105 }

      106
      107 /**
      108 * Gets Values instance for this thread and variable type.
      109 */
      110 Values values(Thread current)

      { 111 return current.localValues; 112 }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vondart dafeng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: