Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java @ 6641:a9fed06c01d2
7154641: Servicability agent should work on platforms other than x86, sparc
Summary: Added capability to load support classes for other cpus
Reviewed-by: coleenp, bobv, sla
Contributed-by: Bill Pittore <bill.pittore@oracle.com>
author | bpittore |
---|---|
date | Thu, 30 Aug 2012 11:20:01 -0400 |
parents | 1d7922586cf6 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
6640:e2cc1fe53845 | 6641:a9fed06c01d2 |
---|---|
90 /** Flags indicating whether we are attached to a core, C1, or C2 build */ | 90 /** Flags indicating whether we are attached to a core, C1, or C2 build */ |
91 private boolean usingClientCompiler; | 91 private boolean usingClientCompiler; |
92 private boolean usingServerCompiler; | 92 private boolean usingServerCompiler; |
93 /** Flag indicating whether UseTLAB is turned on */ | 93 /** Flag indicating whether UseTLAB is turned on */ |
94 private boolean useTLAB; | 94 private boolean useTLAB; |
95 /** Flag indicating whether invokedynamic support is on */ | |
96 private boolean enableInvokeDynamic; | |
95 /** alignment constants */ | 97 /** alignment constants */ |
96 private boolean isLP64; | 98 private boolean isLP64; |
97 private int bytesPerLong; | 99 private int bytesPerLong; |
98 private int objectAlignmentInBytes; | 100 private int objectAlignmentInBytes; |
99 private int minObjAlignmentInBytes; | 101 private int minObjAlignmentInBytes; |
315 } | 317 } |
316 } | 318 } |
317 } | 319 } |
318 | 320 |
319 useTLAB = (db.lookupIntConstant("UseTLAB").intValue() != 0); | 321 useTLAB = (db.lookupIntConstant("UseTLAB").intValue() != 0); |
322 enableInvokeDynamic = (db.lookupIntConstant("EnableInvokeDynamic").intValue() != 0); | |
320 | 323 |
321 if (debugger != null) { | 324 if (debugger != null) { |
322 isLP64 = debugger.getMachineDescription().isLP64(); | 325 isLP64 = debugger.getMachineDescription().isLP64(); |
323 } | 326 } |
324 bytesPerLong = db.lookupIntConstant("BytesPerLong").intValue(); | 327 bytesPerLong = db.lookupIntConstant("BytesPerLong").intValue(); |
548 } | 551 } |
549 | 552 |
550 /** Indicates whether Thread-Local Allocation Buffers are used */ | 553 /** Indicates whether Thread-Local Allocation Buffers are used */ |
551 public boolean getUseTLAB() { | 554 public boolean getUseTLAB() { |
552 return useTLAB; | 555 return useTLAB; |
556 } | |
557 | |
558 public boolean getEnableInvokeDynamic() { | |
559 return enableInvokeDynamic; | |
553 } | 560 } |
554 | 561 |
555 public TypeDataBase getTypeDataBase() { | 562 public TypeDataBase getTypeDataBase() { |
556 return db; | 563 return db; |
557 } | 564 } |