--- old/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/FindInHeapPanel.java 2009-08-01 04:07:00.820800371 +0100 +++ new/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/FindInHeapPanel.java 2009-08-01 04:07:00.739893247 +0100 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -92,7 +92,17 @@ iterated += addressSize; updateProgressBar(); } + public void visitCompOopAddress(Address addr) { + if (error) return; + + Address val = addr.getCompOopAddressAt(0); + if (AddressOps.equal(val, value)) { + error = reportResult(addr); + } + iterated += addressSize; + updateProgressBar(); + } public void epilogue() { iterated = 0; updateProgressBar();