comparison agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java @ 655:60bfce711da4

Merge
author acorn
date Mon, 23 Mar 2009 10:42:20 -0400
parents 54782a4cd321 660978a2a31a
children f30ba3b36599
comparison
equal deleted inserted replaced
654:c664a0794f85 655:60bfce711da4
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 345 debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(),
346 Universe.getNarrowOopShift());
346 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) { 347 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) {
347 ((Observer) iter.next()).update(null, null); 348 ((Observer) iter.next()).update(null, null);
348 } 349 }
349 350
350 debugger.putHeapConst(Universe.getHeapBase(), soleInstance.getHeapOopSize(),
351 soleInstance.logMinObjAlignmentInBytes);
352 } 351 }
353 352
354 /** This is used by the debugging system */ 353 /** This is used by the debugging system */
355 public static void shutdown() { 354 public static void shutdown() {
356 soleInstance = null; 355 soleInstance = null;