mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8250627: Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
Reviewed-by: aph, dholmes, bobv
This commit is contained in:
parent
10b9d0b6a6
commit
e6517d1ae2
7 changed files with 175 additions and 2 deletions
|
@ -538,7 +538,15 @@ JVM_ENTRY_NO_ENV(jint, JVM_ActiveProcessorCount(void))
|
|||
return os::active_processor_count();
|
||||
JVM_END
|
||||
|
||||
|
||||
JVM_ENTRY_NO_ENV(jboolean, JVM_IsUseContainerSupport(void))
|
||||
JVMWrapper("JVM_IsUseContainerSupport");
|
||||
#ifdef LINUX
|
||||
if (UseContainerSupport) {
|
||||
return JNI_TRUE;
|
||||
}
|
||||
#endif
|
||||
return JNI_FALSE;
|
||||
JVM_END
|
||||
|
||||
// java.lang.Throwable //////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue