mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8136421: JEP 243: Java-Level JVM Compiler Interface
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
parent
f7ea8ac7b8
commit
4308ec2ec8
9 changed files with 59 additions and 6 deletions
|
@ -35,14 +35,16 @@ public class NMethod extends CodeBlob {
|
|||
}
|
||||
private NMethod(Object[] obj) {
|
||||
super((Object[])obj[0]);
|
||||
assert obj.length == 4;
|
||||
assert obj.length == 5;
|
||||
comp_level = (Integer) obj[1];
|
||||
insts = (byte[]) obj[2];
|
||||
compile_id = (Integer) obj[3];
|
||||
address = (Long) obj[4];
|
||||
}
|
||||
public final byte[] insts;
|
||||
public final int comp_level;
|
||||
public final int compile_id;
|
||||
public final long address;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
@ -51,6 +53,7 @@ public class NMethod extends CodeBlob {
|
|||
+ ", insts=" + insts
|
||||
+ ", comp_level=" + comp_level
|
||||
+ ", compile_id=" + compile_id
|
||||
+ ", address=" + address
|
||||
+ '}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue