< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/OopUtilities.java

Print this page
*** 223,11 ***
    private static void initThreadFields() {
      if (threadNameField == null) {
        SystemDictionary sysDict = VM.getVM().getSystemDictionary();
        InstanceKlass k = sysDict.getThreadKlass();
        threadNameField  = (OopField) k.findField("name", "Ljava/lang/String;");
-       threadGroupField = (OopField) k.findField("group", "Ljava/lang/ThreadGroup;");
        threadEETopField = (LongField) k.findField("eetop", "J");
        threadTIDField = (LongField) k.findField("tid", "J");
        threadStatusField = (IntField) k.findField("threadStatus", "I");
        threadParkBlockerField = (OopField) k.findField("parkBlocker",
                                       "Ljava/lang/Object;");
--- 223,10 ---

*** 247,21 ***
  
        if (Assert.ASSERTS_ENABLED) {
          // it is okay to miss threadStatusField, because this was
          // introduced only in 1.5 JDK.
          Assert.that(threadNameField   != null &&
-                     threadGroupField  != null &&
                      threadEETopField  != null, "must find all java.lang.Thread fields");
        }
      }
    }
  
-   public static Oop threadOopGetThreadGroup(Oop threadOop) {
-     initThreadFields();
-     return threadGroupField.getValue(threadOop);
-   }
- 
    public static String threadOopGetName(Oop threadOop) {
      initThreadFields();
      return stringOopToString(threadNameField.getValue(threadOop));
    }
  
--- 246,15 ---
< prev index next >