Skip to content

Commit

Permalink
Merge pull request #20911 from JasonFengJ9/valhalla25
Browse files Browse the repository at this point in the history
Valhalla bringup for Java 25 updates
  • Loading branch information
tajila authored Jan 13, 2025
2 parents c6905ad + 9c2f5c2 commit 292a13b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/oti/j9consts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion test/functional/Valhalla/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<compilerarg line='--add-exports java.base/jdk.internal.misc=ALL-UNNAMED' />
<compilerarg line='--add-exports java.base/jdk.internal.value=ALL-UNNAMED' />
<compilerarg line='--add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED' />
<compilerarg line='--enable-preview -source 24'/>
<compilerarg line='--enable-preview -source 25'/>
<!-- uncomment when running with lw5 -->
<!--<compilerarg line='-XDenableNullRestrictedTypes' />-->
<classpath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 292a13b

Please sign in to comment.