hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/FindInHeapPanel.java
Print this page
rev 611 : Merge
*** 1,7 ****
/*
! * Copyright 2002-2004 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 90,100 ****
--- 90,110 ----
error = reportResult(addr);
}
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();
findButton.setEnabled(true);
}