hotspot/agent/src/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java
changeset 360 21d113ecbf6a
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
equal deleted inserted replaced
357:f4edb0d9f109 360:21d113ecbf6a
    25 package sun.jvm.hotspot.types.basic;
    25 package sun.jvm.hotspot.types.basic;
    26 
    26 
    27 import java.util.*;
    27 import java.util.*;
    28 import sun.jvm.hotspot.debugger.*;
    28 import sun.jvm.hotspot.debugger.*;
    29 import sun.jvm.hotspot.types.*;
    29 import sun.jvm.hotspot.types.*;
       
    30 import sun.jvm.hotspot.runtime.VM;
    30 
    31 
    31 /** <P> This is a basic implementation of the TypeDataBase interface.
    32 /** <P> This is a basic implementation of the TypeDataBase interface.
    32     It allows an external type database builder to add types to be
    33     It allows an external type database builder to add types to be
    33     consumed by a client through the Type interfaces. It has no
    34     consumed by a client through the Type interfaces. It has no
    34     knowledge of symbol lookup; for example, the builder is
    35     knowledge of symbol lookup; for example, the builder is
   144   public long getAddressSize() {
   145   public long getAddressSize() {
   145     return machDesc.getAddressSize();
   146     return machDesc.getAddressSize();
   146   }
   147   }
   147 
   148 
   148   public long getOopSize() {
   149   public long getOopSize() {
   149     return machDesc.getOopSize();
   150     return VM.getVM().getOopSize();
   150   }
   151   }
   151 
   152 
   152   public boolean addressTypeIsEqualToType(Address addr, Type type) {
   153   public boolean addressTypeIsEqualToType(Address addr, Type type) {
   153     if (addr == null) {
   154     if (addr == null) {
   154       return false;
   155       return false;