Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/HotSpotTypeDataBase.java @ 689:f30ba3b36599
6822407: heapOopSize lookup is incorrect in Serviceability Agent.
Summary: heapOopSize symbol should be declared as constant in vmStructs and should not be looked up in readVMIntConstants().
Reviewed-by: never, swamyv, coleenp
author | poonam |
---|---|
date | Fri, 27 Mar 2009 10:29:54 -0700 |
parents | d1605aabd0a1 |
children | 23276f80d930 |
comparison
equal
deleted
inserted
replaced
659:520d43965b1f | 689:f30ba3b36599 |
---|---|
304 } | 304 } |
305 } | 305 } |
306 | 306 |
307 entryAddr = entryAddr.addOffsetTo(intConstantEntryArrayStride); | 307 entryAddr = entryAddr.addOffsetTo(intConstantEntryArrayStride); |
308 } while (nameAddr != null); | 308 } while (nameAddr != null); |
309 String symbol = "heapOopSize"; // global int constant and value is initialized at runtime. | |
310 addIntConstant(symbol, (int)lookupInProcess(symbol).getCIntegerAt(0, 4, false)); | |
311 } | 309 } |
312 | 310 |
313 private void readVMLongConstants() { | 311 private void readVMLongConstants() { |
314 // Get the variables we need in order to traverse the VMLongConstantEntry[] | 312 // Get the variables we need in order to traverse the VMLongConstantEntry[] |
315 long longConstantEntryNameOffset; | 313 long longConstantEntryNameOffset; |