equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
94 value = mos.isThreadAllocatedMemorySupported; |
94 value = mos.isThreadAllocatedMemorySupported; |
95 setStaticBooleanField(env, cls, "threadAllocatedMemorySupport", value); |
95 setStaticBooleanField(env, cls, "threadAllocatedMemorySupport", value); |
96 |
96 |
97 value = mos.isRemoteDiagnosticCommandsSupported; |
97 value = mos.isRemoteDiagnosticCommandsSupported; |
98 setStaticBooleanField(env, cls, "remoteDiagnosticCommandsSupport", value); |
98 setStaticBooleanField(env, cls, "remoteDiagnosticCommandsSupport", value); |
99 |
|
100 if ((jmm_version > JMM_VERSION_1_2) || |
|
101 (jmm_version == JMM_VERSION_1_2 && ((jmm_version&0xFF) >= 1))) { |
|
102 setStaticBooleanField(env, cls, "gcNotificationSupport", JNI_TRUE); |
|
103 } else { |
|
104 setStaticBooleanField(env, cls, "gcNotificationSupport", JNI_FALSE); |
|
105 } |
|
106 } |
99 } |
107 |
100 |
108 JNIEXPORT jobjectArray JNICALL |
101 JNIEXPORT jobjectArray JNICALL |
109 Java_sun_management_VMManagementImpl_getVmArguments0 |
102 Java_sun_management_VMManagementImpl_getVmArguments0 |
110 (JNIEnv *env, jobject dummy) |
103 (JNIEnv *env, jobject dummy) |