if (runtime.equals(staticRuntime)) {
return;
}
staticRuntime = runtime;
JavaObject theJavaObject=null;
Iterator heaps = runtime.getHeaps().iterator();
JavaClass theJavaClass = null;
while (heaps.hasNext()) {
Object nextHeap = heaps.next();
if (nextHeap instanceof CorruptData) {
System.err.println("returned CorruptData `" + nextHeap + "'");
break;
}
JavaHeap aJavaHeap = (JavaHeap) nextHeap;
Iterator objects = aJavaHeap.getObjects().iterator();
while (objects.hasNext()) {
Object nextObject = objects.next();
if (nextObject instanceof CorruptData) {
System.err.println("returned CorruptData `" + nextObject + "'");
break;
}
JavaObject aJavaObject = (JavaObject) nextObject;
theJavaClass = aJavaObject.getJavaClass();
String theClassName = (theJavaClass).getName();
if (theClassName.equals(SetupJavaObject_arraycopy.TestArraysClassName)){
theJavaObject = aJavaObject;
break;
}