hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/proc/ProcDebuggerLocal.java
Print this page
rev 611 : Merge
@@ -1,7 +1,7 @@
/*
- * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -51,12 +51,10 @@
* RuntimeException if they are called before the debugger is
* configured with the Java primitive type sizes. </P>
*/
public class ProcDebuggerLocal extends DebuggerBase implements ProcDebugger {
-
-
protected static final int cacheSize = 16 * 1024 * 1024; // 16 MB
//------------------------------------------------------------------------
// Implementation of Debugger interface
//
@@ -335,17 +333,28 @@
throws UnmappedAddressException, UnalignedAddressException {
long value = readAddressValue(address);
return (value == 0 ? null : new ProcAddress(this, value));
}
+ public ProcAddress readCompOopAddress(long address)
+ throws UnmappedAddressException, UnalignedAddressException {
+ long value = readCompOopAddressValue(address);
+ return (value == 0 ? null : new ProcAddress(this, value));
+ }
+
/** From the ProcDebugger interface */
public ProcOopHandle readOopHandle(long address)
throws UnmappedAddressException, UnalignedAddressException, NotInHeapException {
long value = readAddressValue(address);
return (value == 0 ? null : new ProcOopHandle(this, value));
}
+ public ProcOopHandle readCompOopHandle(long address) {
+ long value = readCompOopAddressValue(address);
+ return (value == 0 ? null : new ProcOopHandle(this, value));
+ }
+
public void writeBytesToProcess(long address, long numBytes, byte[] data)
throws UnmappedAddressException, DebuggerException {
if (isCore) {
throw new DebuggerException("Attached to a core file!");
}