diff --git a/runtime/compiler/module.xml b/runtime/compiler/module.xml index 96d528f7ef8..dca4345329e 100644 --- a/runtime/compiler/module.xml +++ b/runtime/compiler/module.xml @@ -50,7 +50,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti - + diff --git a/runtime/hyvm/module.xml b/runtime/hyvm/module.xml index f73dd49f6e1..d8bdf0712e9 100644 --- a/runtime/hyvm/module.xml +++ b/runtime/hyvm/module.xml @@ -1,27 +1,25 @@ - - @@ -55,9 +53,9 @@ - - - + + + @@ -79,7 +77,7 @@ - + diff --git a/runtime/j9vm/CMakeLists.txt b/runtime/j9vm/CMakeLists.txt index f8cea6e30dc..200097d3001 100644 --- a/runtime/j9vm/CMakeLists.txt +++ b/runtime/j9vm/CMakeLists.txt @@ -64,28 +64,28 @@ target_link_libraries(jvm_common target_include_directories(jvm_common INTERFACE ${CMAKE_CURRENT_BINARY_DIR} - #TODO we have to repeat ../include because of duplication of vmi.h + # TODO we have to repeat ../include because of duplication of vmi.h ../include ../hyvm ../harmony/include ../jcl/ ) -add_library(jvm SHARED ${CMAKE_CURRENT_BINARY_DIR}/ut_j9scar.c) -target_link_libraries(jvm +add_library(j9jvm SHARED ${CMAKE_CURRENT_BINARY_DIR}/ut_j9scar.c) +target_link_libraries(j9jvm PRIVATE jvm_common j9util ) if(OMR_OS_WINDOWS) - target_link_libraries(jvm PRIVATE ws2_32) + target_link_libraries(j9jvm PRIVATE ws2_32) endif() -add_dependencies(jvm omrgc_hookgen) +add_dependencies(j9jvm omrgc_hookgen) include(exports.cmake) install( - TARGETS jvm + TARGETS j9jvm LIBRARY DESTINATION ${j9vm_SOURCE_DIR} RUNTIME DESTINATION ${j9vm_SOURCE_DIR} ) diff --git a/runtime/j9vm/exports.cmake b/runtime/j9vm/exports.cmake index 313405ec062..89a792581b7 100644 --- a/runtime/j9vm/exports.cmake +++ b/runtime/j9vm/exports.cmake @@ -20,11 +20,11 @@ # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception ################################################################################ -# Wrapper areround omr_add_exports which strips windows name mangling (except on 32bit windows) +# Wrapper areround omr_add_exports which strips windows name mangling (except on 32-bit windows). function(jvm_add_exports tgt) set(filtered_exports) if(OMR_OS_WINDOWS AND OMR_ENV_DATA32) - # we keep mangled names on 32 bit windows + # we keep mangled names on 32-bit windows set(filtered_exports ${ARGN}) else() # for each symbol name of the form '_foo@1234' replace with 'foo' @@ -36,7 +36,7 @@ function(jvm_add_exports tgt) omr_add_exports(${tgt} ${filtered_exports}) endfunction() -jvm_add_exports(jvm +jvm_add_exports(j9jvm JNI_CreateJavaVM JNI_GetCreatedJavaVMs JNI_GetDefaultJavaVMInitArgs @@ -149,7 +149,7 @@ jvm_add_exports(jvm jio_vsnprintf post_block pre_block - # Additions for Java 7 + # Additions for Java 7. _JVM_GetStackAccessControlContext@8 _JVM_GetInheritedAccessControlContext@8 _JVM_GetArrayLength@8 @@ -243,16 +243,16 @@ jvm_add_exports(jvm _JVM_SetPrimitiveField@24 _JVM_SetNativeThreadName@12 - # Additions used on linux-x86 + # Additions used on linux-x86. _JVM_SetSockOpt@20 _JVM_SocketShutdown@8 _JVM_GetSockName@12 _JVM_GetHostName@8 - # Additions to support the JDWP agent + # Additions to support the JDWP agent. JVM_InitAgentProperties - # Additions to support Java 7 verification + # Additions to support Java 7 verification. _JVM_GetMethodIxLocalsCount@12 _JVM_GetCPMethodNameUTF@12 _JVM_GetMethodIxExceptionTableEntry@20 @@ -284,7 +284,7 @@ jvm_add_exports(jvm _JVM_GetMethodIxExceptionsCount@12 _JVM_ReleaseUTF@4 - # Additions for Java 8 + # Additions for Java 8. _JVM_GetClassTypeAnnotations@8 _JVM_GetFieldTypeAnnotations@8 _JVM_GetMethodParameters@8 @@ -295,10 +295,9 @@ jvm_add_exports(jvm ) if(JAVA_SPEC_VERSION LESS 11) - # i.e. JAVA_SPEC_VERSION < 11 - jvm_add_exports(jvm _JVM_GetCallerClass@4) + jvm_add_exports(j9jvm _JVM_GetCallerClass@4) else() - jvm_add_exports(jvm + jvm_add_exports(j9jvm _JVM_GetCallerClass@8 # Additions for Java 9 (Modularity) JVM_DefineModule @@ -345,8 +344,8 @@ else() endif() if(NOT JAVA_SPEC_VERSION LESS 14) - jvm_add_exports(jvm - # Additions for Java 14 (General) + jvm_add_exports(j9jvm + # Additions for Java 14 (General). JVM_GetExtendedNPEMessage ) endif() diff --git a/runtime/j9vm/module.xml b/runtime/j9vm/module.xml index 919d7b9fe2d..96890e8439a 100644 --- a/runtime/j9vm/module.xml +++ b/runtime/j9vm/module.xml @@ -42,7 +42,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti - + diff --git a/runtime/tests/j9vm/CMakeLists.txt b/runtime/tests/j9vm/CMakeLists.txt index 5e6efcc7cf1..478ef16e408 100644 --- a/runtime/tests/j9vm/CMakeLists.txt +++ b/runtime/tests/j9vm/CMakeLists.txt @@ -28,7 +28,7 @@ target_link_libraries(j9vmtest PRIVATE j9vm_interface - jvm + j9jvm ) target_include_directories(j9vmtest @@ -69,7 +69,6 @@ if(NOT JAVA_SPEC_VERSION LESS 11) omr_add_exports(j9vmtest Java_com_ibm_oti_jvmtests_SupportJVM_GetNanoTimeAdjustment) endif() - install( TARGETS j9vmtest LIBRARY DESTINATION ${j9vm_SOURCE_DIR} diff --git a/runtime/tests/j9vm/module.xml b/runtime/tests/j9vm/module.xml index e3212f8495d..5b8a6b9122c 100644 --- a/runtime/tests/j9vm/module.xml +++ b/runtime/tests/j9vm/module.xml @@ -75,7 +75,7 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti - + diff --git a/runtime/tests/jni/CMakeLists.txt b/runtime/tests/jni/CMakeLists.txt index edcdd1e674a..cda0028e8c7 100644 --- a/runtime/tests/jni/CMakeLists.txt +++ b/runtime/tests/jni/CMakeLists.txt @@ -39,7 +39,7 @@ target_link_libraries(j9ben PRIVATE j9vm_interface j9thr - jvm + j9jvm ) target_include_directories(j9ben PRIVATE diff --git a/runtime/tests/jni/module.xml b/runtime/tests/jni/module.xml index fe40785ccc7..ccaf132c7d6 100644 --- a/runtime/tests/jni/module.xml +++ b/runtime/tests/jni/module.xml @@ -1,29 +1,27 @@ - - - + @@ -191,7 +189,7 @@ - + @@ -386,7 +384,7 @@ - + diff --git a/runtime/tests/lazyclassload/CMakeLists.txt b/runtime/tests/lazyclassload/CMakeLists.txt index 2c5d3116efc..a5548948883 100644 --- a/runtime/tests/lazyclassload/CMakeLists.txt +++ b/runtime/tests/lazyclassload/CMakeLists.txt @@ -26,7 +26,7 @@ add_library(j9lazyClassLoad SHARED target_link_libraries(j9lazyClassLoad PRIVATE j9vm_interface - jvm + j9jvm ) omr_add_exports(j9lazyClassLoad diff --git a/runtime/tests/lazyclassload/module.xml b/runtime/tests/lazyclassload/module.xml index f5b0c235bf6..63ff1a4e4f9 100644 --- a/runtime/tests/lazyclassload/module.xml +++ b/runtime/tests/lazyclassload/module.xml @@ -1,29 +1,28 @@ - - + @@ -38,13 +37,13 @@ - + - +