GCRoot getGCRoot(Long instanceId) { synchronized (gcRootLock) { if (gcRoots == null) { getGCRoots(); } return (GCRoot) gcRoots.get(instanceId); } }
private void fillZeroLevel() throws IOException { Iterator<GCRoot> gcIt = heap.getGCRoots().iterator(); while (gcIt.hasNext()) { HprofGCRoot root = (HprofGCRoot) gcIt.next(); writeLong(root.getInstanceId()); } }
public ThreadObjectGCRoot getThreadGCRoot() { int serial = getThreadSerialNumber(); Iterator<GCRoot> gcRootsIt = heap.getGCRoots().iterator(); while(gcRootsIt.hasNext()) { Object gcRoot = gcRootsIt.next(); if (gcRoot instanceof ThreadObjectHprofGCRoot) { ThreadObjectHprofGCRoot threadObjGC = (ThreadObjectHprofGCRoot) gcRoot; if (serial == threadObjGC.getThreadSerialNumber()) { return threadObjGC; } } } return null; }
GCRoot getGCRoot(Long instanceId) { synchronized (gcRootLock) { if (gcRoots == null) { getGCRoots(); } return (GCRoot) gcRoots.get(instanceId); } }
GCRoot getGCRoot(Long instanceId) { synchronized (gcRootLock) { if (gcRoots == null) { getGCRoots(); } return (GCRoot) gcRoots.get(instanceId); } }
private void fillZeroLevel() throws IOException { Iterator gcIt = heap.getGCRoots().iterator(); while (gcIt.hasNext()) { HprofGCRoot root = (HprofGCRoot) gcIt.next(); writeLong(root.getInstanceId()); } }
private void fillZeroLevel() throws IOException { Iterator<GCRoot> gcIt = heap.getGCRoots().iterator(); while (gcIt.hasNext()) { HprofGCRoot root = (HprofGCRoot) gcIt.next(); writeLong(root.getInstanceId()); } }
public ThreadObjectGCRoot getThreadGCRoot() { int serial = getThreadSerialNumber(); Iterator gcRootsIt = heap.getGCRoots().iterator(); while(gcRootsIt.hasNext()) { Object gcRoot = gcRootsIt.next(); if (gcRoot instanceof ThreadObjectHprofGCRoot) { ThreadObjectHprofGCRoot threadObjGC = (ThreadObjectHprofGCRoot) gcRoot; if (serial == threadObjGC.getThreadSerialNumber()) { return threadObjGC; } } } return null; }
public ThreadObjectGCRoot getThreadGCRoot() { int serial = getThreadSerialNumber(); Iterator<GCRoot> gcRootsIt = heap.getGCRoots().iterator(); while(gcRootsIt.hasNext()) { Object gcRoot = gcRootsIt.next(); if (gcRoot instanceof ThreadObjectHprofGCRoot) { ThreadObjectHprofGCRoot threadObjGC = (ThreadObjectHprofGCRoot) gcRoot; if (serial == threadObjGC.getThreadSerialNumber()) { return threadObjGC; } } } return null; }