--- old/agent/src/share/classes/sun/jvm/hotspot/code/CodeCache.java Thu Sep 17 16:09:24 2009 +++ new/agent/src/share/classes/sun/jvm/hotspot/code/CodeCache.java Thu Sep 17 16:09:24 2009 @@ -167,7 +167,8 @@ CodeBlob lastBlob = null; while (ptr != null && ptr.lessThan(end)) { try { - CodeBlob blob = findBlobUnsafe(ptr); + // Use findStart to get a pointer inside blob other findBlob asserts + CodeBlob blob = findBlobUnsafe(heap.findStart(ptr)); if (blob != null) { visitor.visit(blob); if (blob == lastBlob) {