Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java @ 113:ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author | coleenp |
---|---|
date | Sun, 13 Apr 2008 17:43:42 -0400 |
parents | a61af66fc99e |
children | d1605aabd0a1 |
comparison
equal
deleted
inserted
replaced
110:a49a647afe9a | 113:ba764ed4b6f2 |
---|---|
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; |