Skip to content

Commit

Permalink
Merge pull request #10347 from keithc-ca/container
Browse files Browse the repository at this point in the history
Export JVM_IsUseContainerSupport for Java 11+
  • Loading branch information
DanHeidinga committed Aug 7, 2020
2 parents 28905ae + 812a076 commit 1f779cf
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 21 deletions.
8 changes: 1 addition & 7 deletions runtime/j9vm/exports.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ else()
JVM_AreNestMates
JVM_InitClassName
JVM_InitializeFromArchive
JVM_IsUseContainerSupport
)
endif()

Expand All @@ -362,13 +363,6 @@ if(NOT JAVA_SPEC_VERSION LESS 15)
)
endif()

if(NOT JAVA_SPEC_VERSION LESS 16)
jvm_add_exports(jvm
# Additions for Java 16 (General)
JVM_IsUseContainerSupport
)
endif()

if(J9VM_OPT_JITSERVER)
jvm_add_exports(jvm
JITServer_CreateServer
Expand Down
6 changes: 1 addition & 5 deletions runtime/j9vm/j9vmnatives.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ 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 All @@ -353,9 +354,4 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<export name="JVM_IsCDSSharingEnabled"/>
</exports>

<exports group="jdk16">
<!-- Additions for Java 16 (General) -->
<export name="JVM_IsUseContainerSupport"/>
</exports>

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

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

return inContainer ? JNI_TRUE : JNI_FALSE;
}
#endif /* JAVA_SPEC_VERSION >= 16 */
#endif /* JAVA_SPEC_VERSION >= 11 */
3 changes: 0 additions & 3 deletions runtime/j9vm/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<group name="jdk15">
<include-if condition="spec.java15"/>
</group>
<group name="jdk16">
<include-if condition="spec.java16"/>
</group>
</exports>
<includes>
<include path="j9include"/>
Expand Down
2 changes: 1 addition & 1 deletion runtime/redirector/forwarders.m4
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,5 @@ _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 >= 16],
_IF([JAVA_SPEC_VERSION >= 11],
[_X(JVM_IsUseContainerSupport, JNICALL, false, jboolean, JNIEnv *env)])
3 changes: 0 additions & 3 deletions runtime/redirector/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<group name="jdk15">
<include-if condition="spec.java15"/>
</group>
<group name="jdk16">
<include-if condition="spec.java16"/>
</group>
</exports>
<includes>
<include path="j9include"/>
Expand Down

0 comments on commit 1f779cf

Please sign in to comment.