comparison agent/src/share/classes/sun/jvm/hotspot/runtime/VM.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 60bfce711da4
children 23276f80d930
comparison
equal deleted inserted replaced
659:520d43965b1f 689:f30ba3b36599
340 public static void initialize(TypeDataBase db, JVMDebugger debugger) { 340 public static void initialize(TypeDataBase db, JVMDebugger debugger) {
341 if (soleInstance != null) { 341 if (soleInstance != null) {
342 throw new RuntimeException("Attempt to initialize VM twice"); 342 throw new RuntimeException("Attempt to initialize VM twice");
343 } 343 }
344 soleInstance = new VM(db, debugger, debugger.getMachineDescription().isBigEndian()); 344 soleInstance = new VM(db, debugger, debugger.getMachineDescription().isBigEndian());
345
346 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) {
347 ((Observer) iter.next()).update(null, null);
348 }
349
345 debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(), 350 debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(),
346 Universe.getNarrowOopShift()); 351 Universe.getNarrowOopShift());
347 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) {
348 ((Observer) iter.next()).update(null, null);
349 }
350 352
351 } 353 }
352 354
353 /** This is used by the debugging system */ 355 /** This is used by the debugging system */
354 public static void shutdown() { 356 public static void shutdown() {