From 9c2f5c229490aaaafffb2d5cdd3d7f361c7ee372 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Wed, 8 Jan 2025 08:13:55 -0500 Subject: [PATCH] Valhalla bringup for Java 25 updates Updated -source to 25; Updated VALUE_TYPE_CLASS_FILE_VERSION to 69; Updated VALUE_TYPES_MAJOR_VERSION to 69. Signed-off-by: Jason Feng --- runtime/oti/j9consts.h | 2 +- test/functional/Valhalla/build.xml | 2 +- .../src/org/openj9/test/lworld/ValhallaUtils.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/oti/j9consts.h b/runtime/oti/j9consts.h index e84a92a01b2..ea060e00eee 100644 --- a/runtime/oti/j9consts.h +++ b/runtime/oti/j9consts.h @@ -965,7 +965,7 @@ extern "C" { /* Class version minimum for value type support. */ -#define VALUE_TYPES_MAJOR_VERSION 68 +#define VALUE_TYPES_MAJOR_VERSION 69 #define PREVIEW_MINOR_VERSION 65535 #define J9_IS_CLASSFILE_OR_ROMCLASS_VALUETYPE_VERSION(classfileOrRomClass) (((classfileOrRomClass)->majorVersion >= VALUE_TYPES_MAJOR_VERSION) && (PREVIEW_MINOR_VERSION == (classfileOrRomClass)->minorVersion)) diff --git a/test/functional/Valhalla/build.xml b/test/functional/Valhalla/build.xml index 535486d99dd..150489e4bcc 100644 --- a/test/functional/Valhalla/build.xml +++ b/test/functional/Valhalla/build.xml @@ -64,7 +64,7 @@ - + diff --git a/test/functional/Valhalla/src/org/openj9/test/lworld/ValhallaUtils.java b/test/functional/Valhalla/src/org/openj9/test/lworld/ValhallaUtils.java index 4259ca809ca..8c8f3db0bac 100644 --- a/test/functional/Valhalla/src/org/openj9/test/lworld/ValhallaUtils.java +++ b/test/functional/Valhalla/src/org/openj9/test/lworld/ValhallaUtils.java @@ -25,12 +25,12 @@ public class ValhallaUtils { /** - * Currently value type is built on JDK24, so use java file major version 68 for now. - * If moved this needs to be incremented to the next class file version. The check in j9bcutil_readClassFileBytes() - * against BCT_JavaMajorVersionShifted needs to be updated as well. + * Currently value type is built on JDK25, so use java file major version 69 for now. + * If moved this needs to be incremented to the next class file version. + * VALUE_TYPES_MAJOR_VERSION in oti/j9consts.h needs to be updated as well. * Minor version is in 16 most significant bits for asm. */ - static final int VALUE_TYPE_CLASS_FILE_VERSION = (65535 << 16) | 68; + static final int VALUE_TYPE_CLASS_FILE_VERSION = (65535 << 16) | 69; /* workaround till the new ASM is released */ static final int ACC_IDENTITY = 0x20;