6825642: nsk sajdi tests fail with NullPointerException

Reviewed-by: xlu, coleenp, kamg, swamyv
This commit is contained in:
Karen Kinnear 2009-04-02 14:26:42 -04:00
parent 4be7c3c672
commit 1f5324fed4
3 changed files with 5 additions and 4 deletions

View File

@ -306,6 +306,8 @@ public class HotSpotTypeDataBase extends BasicTypeDataBase {
entryAddr = entryAddr.addOffsetTo(intConstantEntryArrayStride);
} while (nameAddr != null);
String symbol = "heapOopSize"; // global int constant and value is initialized at runtime.
addIntConstant(symbol, (int)lookupInProcess(symbol).getCIntegerAt(0, 4, false));
}
private void readVMLongConstants() {

View File

@ -343,13 +343,13 @@ public class VM {
}
soleInstance = new VM(db, debugger, debugger.getMachineDescription().isBigEndian());
debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(),
Universe.getNarrowOopShift());
for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) {
((Observer) iter.next()).update(null, null);
}
debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(),
Universe.getNarrowOopShift());
}
/** This is used by the debugging system */

View File

@ -1320,7 +1320,6 @@ static inline uint64_t cast_uint64_t(size_t x)
/****************/ \
\
declare_constant(oopSize) \
declare_constant(heapOopSize) \
declare_constant(LogBytesPerWord) \
declare_constant(BytesPerLong) \
\