agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser

agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java

Print this page




1203                      tmpBuf.append(']');
1204                   }
1205                }
1206                tmpBuf.append(spaces);
1207             }
1208             tmpBuf.endTag("td");
1209             tmpBuf.endTag("tr");
1210             return found ? tmpBuf : new Formatter(genHTML);
1211          }
1212       }
1213 
1214       buf.beginTable(0);
1215 
1216       OopMapValueIterator omvIterator = new OopMapValueIterator();
1217       OopMapStream oms = new OopMapStream(map, OopMapValue.OopTypes.OOP_VALUE);
1218       buf.append(omvIterator.iterate(oms, "Oops:", false));
1219 
1220       oms = new OopMapStream(map, OopMapValue.OopTypes.NARROWOOP_VALUE);
1221       buf.append(omvIterator.iterate(oms, "NarrowOops:", false));
1222 
1223       oms = new OopMapStream(map, OopMapValue.OopTypes.VALUE_VALUE);
1224       buf.append(omvIterator.iterate(oms, "Values:", false));
1225 
1226       oms = new OopMapStream(map, OopMapValue.OopTypes.CALLEE_SAVED_VALUE);
1227       buf.append(omvIterator.iterate(oms, "Callee saved:",  true));
1228 
1229       oms = new OopMapStream(map, OopMapValue.OopTypes.DERIVED_OOP_VALUE);
1230       buf.append(omvIterator.iterate(oms, "Derived oops:", true));
1231 
1232       buf.endTag("table");
1233       return buf.toString();
1234    }
1235 
1236 
1237    protected String genOopMapInfo(NMethod nmethod, PCDesc pcDesc) {
1238       ImmutableOopMapSet mapSet = nmethod.getOopMaps();
1239       if (mapSet == null || (mapSet.getCount() <= 0))
1240         return "";
1241       int pcOffset = pcDesc.getPCOffset();
1242       ImmutableOopMap map = mapSet.findMapAtOffset(pcOffset, VM.getVM().isDebugging());
1243       if (map == null) {
1244          throw new IllegalArgumentException("no oopmap at safepoint!");
1245       }




1203                      tmpBuf.append(']');
1204                   }
1205                }
1206                tmpBuf.append(spaces);
1207             }
1208             tmpBuf.endTag("td");
1209             tmpBuf.endTag("tr");
1210             return found ? tmpBuf : new Formatter(genHTML);
1211          }
1212       }
1213 
1214       buf.beginTable(0);
1215 
1216       OopMapValueIterator omvIterator = new OopMapValueIterator();
1217       OopMapStream oms = new OopMapStream(map, OopMapValue.OopTypes.OOP_VALUE);
1218       buf.append(omvIterator.iterate(oms, "Oops:", false));
1219 
1220       oms = new OopMapStream(map, OopMapValue.OopTypes.NARROWOOP_VALUE);
1221       buf.append(omvIterator.iterate(oms, "NarrowOops:", false));
1222 



1223       oms = new OopMapStream(map, OopMapValue.OopTypes.CALLEE_SAVED_VALUE);
1224       buf.append(omvIterator.iterate(oms, "Callee saved:",  true));
1225 
1226       oms = new OopMapStream(map, OopMapValue.OopTypes.DERIVED_OOP_VALUE);
1227       buf.append(omvIterator.iterate(oms, "Derived oops:", true));
1228 
1229       buf.endTag("table");
1230       return buf.toString();
1231    }
1232 
1233 
1234    protected String genOopMapInfo(NMethod nmethod, PCDesc pcDesc) {
1235       ImmutableOopMapSet mapSet = nmethod.getOopMaps();
1236       if (mapSet == null || (mapSet.getCount() <= 0))
1237         return "";
1238       int pcOffset = pcDesc.getPCOffset();
1239       ImmutableOopMap map = mapSet.findMapAtOffset(pcOffset, VM.getVM().isDebugging());
1240       if (map == null) {
1241          throw new IllegalArgumentException("no oopmap at safepoint!");
1242       }


agent/src/share/classes/sun/jvm/hotspot/ui/classbrowser/HTMLGenerator.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File