agent/src/share/classes/sun/jvm/hotspot/debugger/remote/RemoteDebuggerServer.java

Print this page
rev 3688 : 7054512: Compress class pointers after perm gen removal
Summary: support of compress class pointers in the compilers.
Reviewed-by:


 109   public long getJLongSize() throws RemoteException {
 110     return debugger.getJLongSize();
 111   }
 112 
 113   public long getJShortSize() throws RemoteException {
 114     return debugger.getJShortSize();
 115   }
 116 
 117   public long getHeapOopSize() throws RemoteException {
 118     return debugger.getHeapOopSize();
 119   }
 120 
 121   public long getNarrowOopBase() throws RemoteException {
 122     return debugger.getNarrowOopBase();
 123   }
 124 
 125   public int  getNarrowOopShift() throws RemoteException {
 126     return debugger.getNarrowOopShift();
 127   }
 128 












 129   public boolean   areThreadsEqual(long addrOrId1, boolean isAddress1,
 130                                    long addrOrId2, boolean isAddress2) throws RemoteException {
 131     ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);
 132     ThreadProxy t2 = getThreadProxy(addrOrId2, isAddress2);
 133     return t1.equals(t2);
 134   }
 135 
 136 
 137   public int       getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException {
 138     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 139     return t.hashCode();
 140   }
 141 
 142   public long[]    getThreadIntegerRegisterSet(long addrOrId, boolean isAddress) throws RemoteException {
 143     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 144     ThreadContext tc = t.getContext();
 145     long[] regs = new long[tc.getNumRegisters()];
 146     for (int r = 0; r < regs.length; r++) {
 147        regs[r] = tc.getRegister(r);
 148     }


 109   public long getJLongSize() throws RemoteException {
 110     return debugger.getJLongSize();
 111   }
 112 
 113   public long getJShortSize() throws RemoteException {
 114     return debugger.getJShortSize();
 115   }
 116 
 117   public long getHeapOopSize() throws RemoteException {
 118     return debugger.getHeapOopSize();
 119   }
 120 
 121   public long getNarrowOopBase() throws RemoteException {
 122     return debugger.getNarrowOopBase();
 123   }
 124 
 125   public int  getNarrowOopShift() throws RemoteException {
 126     return debugger.getNarrowOopShift();
 127   }
 128 
 129   public long getKlassPtrSize() throws RemoteException {
 130     return debugger.getHeapOopSize();
 131   }
 132 
 133   public long getNarrowKlassBase() throws RemoteException {
 134     return debugger.getNarrowKlassBase();
 135   }
 136 
 137   public int  getNarrowKlassShift() throws RemoteException {
 138     return debugger.getNarrowKlassShift();
 139   }
 140 
 141   public boolean   areThreadsEqual(long addrOrId1, boolean isAddress1,
 142                                    long addrOrId2, boolean isAddress2) throws RemoteException {
 143     ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);
 144     ThreadProxy t2 = getThreadProxy(addrOrId2, isAddress2);
 145     return t1.equals(t2);
 146   }
 147 
 148 
 149   public int       getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException {
 150     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 151     return t.hashCode();
 152   }
 153 
 154   public long[]    getThreadIntegerRegisterSet(long addrOrId, boolean isAddress) throws RemoteException {
 155     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 156     ThreadContext tc = t.getContext();
 157     long[] regs = new long[tc.getNumRegisters()];
 158     for (int r = 0; r < regs.length; r++) {
 159        regs[r] = tc.getRegister(r);
 160     }