Skip to content

Commit

Permalink
Merge pull request #10496 from keithc-ca/containers8
Browse files Browse the repository at this point in the history
Export JVM_IsUseContainerSupport for all Java versions
  • Loading branch information
DanHeidinga committed Aug 31, 2020
2 parents ed14e11 + d530140 commit 404f019
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/j9vm/exports.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ jvm_add_exports(jvm
_JVM_GetFieldTypeAnnotations@8
_JVM_GetMethodParameters@8
_JVM_GetMethodTypeAnnotations@8
JVM_IsUseContainerSupport
_JVM_IsVMGeneratedMethodIx@12
JVM_GetTemporaryDirectory
_JVM_CopySwapMemory@44
Expand Down Expand Up @@ -341,7 +342,6 @@ else()
JVM_AreNestMates
JVM_InitClassName
JVM_InitializeFromArchive
JVM_IsUseContainerSupport
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion runtime/j9vm/j9vmnatives.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<export name="_JVM_GetFieldTypeAnnotations@8"/>
<export name="_JVM_GetMethodParameters@8"/>
<export name="_JVM_GetMethodTypeAnnotations@8"/>
<export name="JVM_IsUseContainerSupport"/>
<export name="_JVM_IsVMGeneratedMethodIx@12"/>
<export name="JVM_GetTemporaryDirectory"/>
<export name="_JVM_CopySwapMemory@44"/>
Expand Down Expand Up @@ -337,7 +338,6 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<export name="JVM_AreNestMates"/>
<export name="JVM_InitClassName"/>
<export name="JVM_InitializeFromArchive"/>
<export name="JVM_IsUseContainerSupport"/>
</exports>

<exports group="jdk14">
Expand Down
2 changes: 0 additions & 2 deletions runtime/j9vm/java11vmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,6 @@ JVM_IsCDSSharingEnabled(JNIEnv *env)
}
#endif /* JAVA_SPEC_VERSION >= 15 */

#if JAVA_SPEC_VERSION >= 11
JNIEXPORT jboolean JNICALL
JVM_IsUseContainerSupport(JNIEnv *env)
{
Expand All @@ -1795,4 +1794,3 @@ JVM_IsUseContainerSupport(JNIEnv *env)

return inContainer ? JNI_TRUE : JNI_FALSE;
}
#endif /* JAVA_SPEC_VERSION >= 11 */
3 changes: 1 addition & 2 deletions runtime/redirector/forwarders.m4
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,4 @@ _IF([JAVA_SPEC_VERSION >= 15],
[_X(JVM_IsCDSDumpingEnabled, JNICALL, false, jboolean, JNIEnv *env)])
_IF([JAVA_SPEC_VERSION >= 15],
[_X(JVM_IsCDSSharingEnabled, JNICALL, false, jboolean, JNIEnv *env)])
_IF([JAVA_SPEC_VERSION >= 11],
[_X(JVM_IsUseContainerSupport, JNICALL, false, jboolean, JNIEnv *env)])
_X(JVM_IsUseContainerSupport, JNICALL, false, jboolean, JNIEnv *env)

0 comments on commit 404f019

Please sign in to comment.