mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-24 20:38:14 +00:00
8031305: (hotspot) com.sun.management.VMOption is missing the ATTACH_ON_DEMAND origin
Reviewed-by: jbachorik, mchung, dholmes
This commit is contained in:
parent
3c425d407f
commit
3e537df17c
@ -153,6 +153,7 @@ typedef enum {
|
||||
JMM_VMGLOBAL_ORIGIN_ENVIRON_VAR = 4, /* Set via environment variables */
|
||||
JMM_VMGLOBAL_ORIGIN_CONFIG_FILE = 5, /* Set via config file (such as .hotspotrc) */
|
||||
JMM_VMGLOBAL_ORIGIN_ERGONOMIC = 6, /* Set via ergonomic */
|
||||
JMM_VMGLOBAL_ORIGIN_ATTACH_ON_DEMAND = 7, /* Set via attach */
|
||||
JMM_VMGLOBAL_ORIGIN_OTHER = 99 /* Set via some other mechanism */
|
||||
} jmmVMGlobalOrigin;
|
||||
|
||||
|
||||
@ -1724,6 +1724,9 @@ bool add_global_entry(JNIEnv* env, Handle name, jmmVMGlobal *global, Flag *flag,
|
||||
case Flag::ERGONOMIC:
|
||||
global->origin = JMM_VMGLOBAL_ORIGIN_ERGONOMIC;
|
||||
break;
|
||||
case Flag::ATTACH_ON_DEMAND:
|
||||
global->origin = JMM_VMGLOBAL_ORIGIN_ATTACH_ON_DEMAND;
|
||||
break;
|
||||
default:
|
||||
global->origin = JMM_VMGLOBAL_ORIGIN_OTHER;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user