equal
deleted
inserted
replaced
29 import sun.jvm.hotspot.debugger.*; |
29 import sun.jvm.hotspot.debugger.*; |
30 import sun.jvm.hotspot.runtime.*; |
30 import sun.jvm.hotspot.runtime.*; |
31 import sun.jvm.hotspot.types.*; |
31 import sun.jvm.hotspot.types.*; |
32 import sun.jvm.hotspot.utilities.*; |
32 import sun.jvm.hotspot.utilities.*; |
33 |
33 |
34 // TypeArrayKlass is a proxy for typeArrayKlass in the JVM |
34 // TypeArrayKlass is a proxy for TypeArrayKlass in the JVM |
35 |
35 |
36 public class TypeArrayKlass extends ArrayKlass { |
36 public class TypeArrayKlass extends ArrayKlass { |
37 static { |
37 static { |
38 VM.registerVMInitializedObserver(new Observer() { |
38 VM.registerVMInitializedObserver(new Observer() { |
39 public void update(Observable o, Object data) { |
39 public void update(Observable o, Object data) { |
41 } |
41 } |
42 }); |
42 }); |
43 } |
43 } |
44 |
44 |
45 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { |
45 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { |
46 Type t = db.lookupType("typeArrayKlass"); |
46 Type t = db.lookupType("TypeArrayKlass"); |
47 maxLength = new CIntField(t.getCIntegerField("_max_length"), 0); |
47 maxLength = new CIntField(t.getCIntegerField("_max_length"), 0); |
48 } |
48 } |
49 |
49 |
50 public TypeArrayKlass(Address addr) { |
50 public TypeArrayKlass(Address addr) { |
51 super(addr); |
51 super(addr); |