mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8202150: [REDO] Split globals.hpp to factor out the Flag class
Factored out Flag out go globals, renamed to JVMFlag Reviewed-by: coleenp, dholmes, kvn
This commit is contained in:
parent
4d841c90fb
commit
edc81d17e1
66 changed files with 3060 additions and 2964 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "jvmci/jvmciCompilerToVM.hpp"
|
||||
#include "jvmci/jvmciCodeInstaller.hpp"
|
||||
#include "jvmci/jvmciRuntime.hpp"
|
||||
#include "runtime/flags/jvmFlag.hpp"
|
||||
#include "runtime/frame.inline.hpp"
|
||||
#include "runtime/interfaceSupport.inline.hpp"
|
||||
#include "runtime/jniHandles.inline.hpp"
|
||||
|
@ -125,7 +126,7 @@ C2V_VMENTRY(jobject, getFlagValue, (JNIEnv *, jobject c2vm, jobject name_handle)
|
|||
}
|
||||
ResourceMark rm;
|
||||
const char* cstring = java_lang_String::as_utf8_string(name());
|
||||
Flag* flag = Flag::find_flag(cstring, strlen(cstring), /* allow_locked */ true, /* return_flag */ true);
|
||||
JVMFlag* flag = JVMFlag::find_flag(cstring, strlen(cstring), /* allow_locked */ true, /* return_flag */ true);
|
||||
if (flag == NULL) {
|
||||
return c2vm;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue