agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java

Print this page
rev 4134 : imported patch remove-prints


 167     while (i.hasNext()) {
 168       String name = (String)i.next();
 169       if (name.startsWith(prefix)) {
 170         // Strip prefix
 171         if (!name.endsWith("Reason_many") &&
 172             !name.endsWith("Reason_LIMIT") &&
 173             !name.endsWith("Reason_RECORDED_LIMIT")) {
 174           String trimmed = name.substring(prefix.length());
 175           int value = db.lookupIntConstant(name).intValue();
 176           if (trapReasonName[value] != null) {
 177             throw new InternalError("duplicate reasons: " + trapReasonName[value] + " " + trimmed);
 178           }
 179           trapReasonName[value] = trimmed;
 180         }
 181       }
 182     }
 183     for (int index = 0; index < trapReasonName.length; index++) {
 184       if (trapReasonName[index] == null) {
 185         throw new InternalError("missing reason for " + index);
 186       }
 187       System.out.println(trapReasonName[index]);
 188     }
 189   }
 190 
 191   public MethodData(Address addr) {
 192     super(addr);
 193   }
 194 
 195   public boolean isMethodData()        { return true; }
 196 
 197   private static long baseOffset;
 198   private static CIntField size;
 199   private static MetadataField  method;
 200   private static CIntField dataSize;
 201   private static AddressField data;
 202 
 203   public static int sizeofMethodDataOopDesc;
 204   public static int cellSize;
 205 
 206   public Method getMethod() {
 207     return (Method) method.getValue(this);




 167     while (i.hasNext()) {
 168       String name = (String)i.next();
 169       if (name.startsWith(prefix)) {
 170         // Strip prefix
 171         if (!name.endsWith("Reason_many") &&
 172             !name.endsWith("Reason_LIMIT") &&
 173             !name.endsWith("Reason_RECORDED_LIMIT")) {
 174           String trimmed = name.substring(prefix.length());
 175           int value = db.lookupIntConstant(name).intValue();
 176           if (trapReasonName[value] != null) {
 177             throw new InternalError("duplicate reasons: " + trapReasonName[value] + " " + trimmed);
 178           }
 179           trapReasonName[value] = trimmed;
 180         }
 181       }
 182     }
 183     for (int index = 0; index < trapReasonName.length; index++) {
 184       if (trapReasonName[index] == null) {
 185         throw new InternalError("missing reason for " + index);
 186       }

 187     }
 188   }
 189 
 190   public MethodData(Address addr) {
 191     super(addr);
 192   }
 193 
 194   public boolean isMethodData()        { return true; }
 195 
 196   private static long baseOffset;
 197   private static CIntField size;
 198   private static MetadataField  method;
 199   private static CIntField dataSize;
 200   private static AddressField data;
 201 
 202   public static int sizeofMethodDataOopDesc;
 203   public static int cellSize;
 204 
 205   public Method getMethod() {
 206     return (Method) method.getValue(this);