8077832: SA's dumpreplaydata, dumpcfg and buildreplayjars are broken
SA code out of sync with hotspot code Reviewed-by: dsamersoff, sla, kvn
This commit is contained in:
parent
cb7a08139b
commit
6862ecfe16
@ -148,7 +148,7 @@ public class ciMethodData extends ciMetadata implements MethodDataInterface<ciKl
|
||||
ParametersTypeData<ciKlass,ciMethod> parametersTypeData() {
|
||||
Address base = getAddress().addOffsetTo(origField.getOffset());
|
||||
int di = (int)parametersTypeDataDi.getValue(base);
|
||||
if (di == -1) {
|
||||
if (di == -1 || di == -2) {
|
||||
return null;
|
||||
}
|
||||
DataLayout dataLayout = new DataLayout(dataField.getValue(getAddress()), di);
|
||||
|
@ -328,7 +328,7 @@ public class ConstantPool extends Metadata implements ClassConstants {
|
||||
}
|
||||
|
||||
public Symbol getUnresolvedStringAt(int which) {
|
||||
return getSymbolAt(which);
|
||||
return getSlotAt(which).getSymbol();
|
||||
}
|
||||
|
||||
// returns null, if not resolved.
|
||||
|
@ -42,10 +42,10 @@ public class PhaseCFG extends Phase {
|
||||
|
||||
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
|
||||
Type type = db.lookupType("PhaseCFG");
|
||||
numBlocksField = new CIntField(type.getCIntegerField("_num_blocks"), 0);
|
||||
numBlocksField = new CIntField(type.getCIntegerField("_number_of_blocks"), 0);
|
||||
blocksField = type.getAddressField("_blocks");
|
||||
bbsField = type.getAddressField("_node_to_block_mapping");
|
||||
brootField = type.getAddressField("_broot");
|
||||
brootField = type.getAddressField("_root_block");
|
||||
}
|
||||
|
||||
private static CIntField numBlocksField;
|
||||
|
Loading…
Reference in New Issue
Block a user