mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8256424: Move ciSymbol::symbol_name() to ciSymbols::symbol_name()
Reviewed-by: kvn, iklam
This commit is contained in:
parent
1e5e790ba0
commit
f57405617e
32 changed files with 153 additions and 81 deletions
|
@ -24,6 +24,7 @@
|
|||
#include "precompiled.hpp"
|
||||
#include "compiler/compileBroker.hpp"
|
||||
#include "classfile/moduleEntry.hpp"
|
||||
#include "classfile/vmSymbols.hpp"
|
||||
#include "jvmci/jvmciEnv.hpp"
|
||||
#include "jvmci/jvmciRuntime.hpp"
|
||||
#include "oops/objArrayOop.inline.hpp"
|
||||
|
@ -42,6 +43,16 @@ JVMCICompiler::JVMCICompiler() : AbstractCompiler(compiler_jvmci) {
|
|||
_instance = this;
|
||||
}
|
||||
|
||||
JVMCICompiler* JVMCICompiler::instance(bool require_non_null, TRAPS) {
|
||||
if (!EnableJVMCI) {
|
||||
THROW_MSG_NULL(vmSymbols::java_lang_InternalError(), "JVMCI is not enabled")
|
||||
}
|
||||
if (_instance == NULL && require_non_null) {
|
||||
THROW_MSG_NULL(vmSymbols::java_lang_InternalError(), "The JVMCI compiler instance has not been created");
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
|
||||
// Initialization
|
||||
void JVMCICompiler::initialize() {
|
||||
assert(!is_c1_or_interpreter_only(), "JVMCI is launched, it's not c1/interpreter only mode");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue