Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java @ 692:23276f80d930
6825642: nsk sajdi tests fail with NullPointerException
Reviewed-by: xlu, coleenp, kamg, swamyv
author | acorn |
---|---|
date | Thu, 02 Apr 2009 14:26:42 -0400 |
parents | f30ba3b36599 |
children | 81a249214991 |
comparison
equal
deleted
inserted
replaced
691:956304450e80 | 692:23276f80d930 |
---|---|
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 |
346 debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(), | |
347 Universe.getNarrowOopShift()); | |
348 | |
346 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) { | 349 for (Iterator iter = vmInitializedObservers.iterator(); iter.hasNext(); ) { |
347 ((Observer) iter.next()).update(null, null); | 350 ((Observer) iter.next()).update(null, null); |
348 } | 351 } |
349 | |
350 debugger.putHeapConst(soleInstance.getHeapOopSize(), Universe.getNarrowOopBase(), | |
351 Universe.getNarrowOopShift()); | |
352 | 352 |
353 } | 353 } |
354 | 354 |
355 /** This is used by the debugging system */ | 355 /** This is used by the debugging system */ |
356 public static void shutdown() { | 356 public static void shutdown() { |