Harmony
  1. Harmony
  2. HARMONY-6690

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor 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 }

        Activity

        dafeng created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development