Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/compiler/CompileTask.java @ 10197:7b23cb975cf2
8011675: adding compilation level to replay data
Reviewed-by: kvn, vlivanov
author | iignatyev |
---|---|
date | Thu, 25 Apr 2013 11:09:24 -0700 |
parents | bd7a7ce2e264 |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10196:dc7db03f5aa2 | 10197:7b23cb975cf2 |
---|---|
44 | 44 |
45 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { | 45 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { |
46 Type type = db.lookupType("CompileTask"); | 46 Type type = db.lookupType("CompileTask"); |
47 methodField = type.getAddressField("_method"); | 47 methodField = type.getAddressField("_method"); |
48 osrBciField = new CIntField(type.getCIntegerField("_osr_bci"), 0); | 48 osrBciField = new CIntField(type.getCIntegerField("_osr_bci"), 0); |
49 compLevelField = new CIntField(type.getCIntegerField("_comp_level"), 0); | |
49 } | 50 } |
50 | 51 |
51 private static AddressField methodField; | 52 private static AddressField methodField; |
52 private static CIntField osrBciField; | 53 private static CIntField osrBciField; |
54 private static CIntField compLevelField; | |
53 | 55 |
54 public CompileTask(Address addr) { | 56 public CompileTask(Address addr) { |
55 super(addr); | 57 super(addr); |
56 } | 58 } |
57 | 59 |
61 } | 63 } |
62 | 64 |
63 public int osrBci() { | 65 public int osrBci() { |
64 return (int)osrBciField.getValue(getAddress()); | 66 return (int)osrBciField.getValue(getAddress()); |
65 } | 67 } |
68 | |
69 public int compLevel() { | |
70 return (int)compLevelField.getValue(getAddress()); | |
71 } | |
66 } | 72 } |