From 92d0288262ccce3b31a171e3424c326e0a0e65f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 13:12:35 +0200 Subject: [PATCH 1/9] Update GraalHotSpotVMConfig.java --- .../src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java index e30152996023..3cb69eac72a3 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java @@ -397,7 +397,7 @@ public long defaultPrototypeMarkWord() { public final long verifyOopMask = getFieldValue("CompilerToVM::Data::Universe_verify_oop_mask", Long.class, "uintptr_t"); public final long verifyOopBits = getFieldValue("CompilerToVM::Data::Universe_verify_oop_bits", Long.class, "uintptr_t"); - public final int logOfHRGrainBytes = getFieldValue("HeapRegion::LogOfHRGrainBytes", Integer.class, JDK >= 22 ? "uint" : "int"); + public final int logOfHRGrainBytes = getFieldValue(JDK >= 23 ? "G1HeapRegion::LogOfHRGrainBytes" : "HeapRegion::LogOfHRGrainBytes", Integer.class, JDK >= 22 ? "uint" : "int"); public final int cardtableShift = getFieldValue("CompilerToVM::Data::cardtable_shift", Integer.class, "int"); public final long cardtableStartAddress = getFieldValue("CompilerToVM::Data::cardtable_start_address", Long.class, "CardTable::CardValue*"); From 25e1c3d4d7798c6032d59fadc9229b8b0a8cc253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 14:10:39 +0200 Subject: [PATCH 2/9] Update gluon-build.yml --- .github/workflows/gluon-build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gluon-build.yml b/.github/workflows/gluon-build.yml index d57bff91363f..ef853abd51e2 100644 --- a/.github/workflows/gluon-build.yml +++ b/.github/workflows/gluon-build.yml @@ -70,17 +70,15 @@ jobs: tar -xf labsjdk-ce-${{ env.LABS_TAG }}-${{ matrix.NAME }}-${{ matrix.ARCH }}.tar.gz echo "JAVA_HOME=${{ github.workspace }}/labsjdk-ce-23-jvmci-b01${{ matrix.HOME }}" >> ${GITHUB_ENV} - name: Build GraalVM - id: build-graalvm run: | cd substratevm - ${MX_PATH}/mx --dy /substratevm build - GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm graalvm-home` - echo "::set-output name=graalvm-home-dir::$GRAALVM_HOME" + ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build + echo "GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm run: | - cd ${{ steps.build-graalvm.outputs.graalvm-home-dir }}/.. + cd ${{ env.GRAALVM_HOME }}/.. if [[ ${{ matrix.os }} != 'ubuntu-latest' ]] then cd ../.. @@ -141,7 +139,8 @@ jobs: shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - call ${{ env.MX_PATH }}\mx.cmd -p substratevm build + call ${{ env.MX_PATH }}\mx.cmd clean + call ${{ env.MX_PATH }}\mx.cmd -p substratevm --dy /substratevm --native-images=lib:native-image-agent build call ${{ env.MX_PATH }}\mx.cmd -p substratevm graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME= Date: Sun, 8 Sep 2024 14:13:03 +0200 Subject: [PATCH 3/9] Update gluon-release.yml --- .github/workflows/gluon-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gluon-release.yml b/.github/workflows/gluon-release.yml index 3314e8b0efde..fd94ee46d49f 100644 --- a/.github/workflows/gluon-release.yml +++ b/.github/workflows/gluon-release.yml @@ -79,12 +79,10 @@ jobs: tar -xf labsjdk-ce-${{ env.LABS_TAG }}-${{ matrix.NAME }}-${{ matrix.ARCH }}.tar.gz echo "JAVA_HOME=${{ github.workspace }}/labsjdk-ce-23-jvmci-b01${{ matrix.HOME }}" >> ${GITHUB_ENV} - name: Build GraalVM - id: build-graalvm run: | cd substratevm - ${MX_PATH}/mx --dy /substratevm build - GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm graalvm-home` - echo "::set-output name=graalvm-home-dir::$GRAALVM_HOME" + ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build + echo "GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm @@ -152,12 +150,11 @@ jobs: shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - call ${{ env.MX_PATH }}\mx.cmd -p substratevm build + call ${{ env.MX_PATH }}\mx.cmd -p substratevm --dy /substratevm --native-images=lib:native-image-agent build call ${{ env.MX_PATH }}\mx.cmd -p substratevm graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME=> %GITHUB_ENV% - name: Create distribution working-directory: ./vm From 09699c90ee027682f557a38f524ca378ede29244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 15:05:36 +0200 Subject: [PATCH 4/9] Update gluon-build.yml --- .github/workflows/gluon-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gluon-build.yml b/.github/workflows/gluon-build.yml index ef853abd51e2..cf307006f897 100644 --- a/.github/workflows/gluon-build.yml +++ b/.github/workflows/gluon-build.yml @@ -5,10 +5,10 @@ name: Gluon Build on: push: branches: - - 'master' + - 'gluon24' pull_request: branches: - - 'master' + - 'gluon24' workflow_dispatch: env: From b57cc6dc4dece7f3c7f4024a561241fded7e7abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 15:06:59 +0200 Subject: [PATCH 5/9] Update gluon-build.yml --- .github/workflows/gluon-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gluon-build.yml b/.github/workflows/gluon-build.yml index cf307006f897..234fe44e4e57 100644 --- a/.github/workflows/gluon-build.yml +++ b/.github/workflows/gluon-build.yml @@ -40,7 +40,7 @@ jobs: LABS_HOME: ${{ github.workspace }}/jdk MX_PYTHON: python3.9 MX_PATH: ${{ github.workspace }}/mx - GRAALVM_SVM: graalvm-java23-${{ matrix.NAME }}-24.1 + GRAALVM_SVM: graalvm-java23-${{ matrix.NAME }}-23+25.1 DYNAMIC_IMPORTS: "/substratevm" DISABLE_POLYGLOT: true DISABLE_LIBPOLYGLOT: true @@ -110,7 +110,7 @@ jobs: LABS_HOME: ${{ github.workspace }}/jdk MX_PYTHON: 'python' MX_PATH: ${{ github.workspace }}/mx - GRAALVM_SVM: graalvm-java23-${{ matrix.NAME }}-24.1 + GRAALVM_SVM: graalvm-java23-${{ matrix.NAME }}-23+25.1 DYNAMIC_IMPORTS: "/substratevm" DISABLE_POLYGLOT: true DISABLE_LIBPOLYGLOT: true From c2b598cf4d693b591b34cddae70ba90029aa1352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 15:10:54 +0200 Subject: [PATCH 6/9] Update gluon-release.yml --- .github/workflows/gluon-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gluon-release.yml b/.github/workflows/gluon-release.yml index fd94ee46d49f..19cea43a3232 100644 --- a/.github/workflows/gluon-release.yml +++ b/.github/workflows/gluon-release.yml @@ -81,8 +81,9 @@ jobs: - name: Build GraalVM run: | cd substratevm + ${MX_PATH}/mx clean ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build - echo "GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent graalvm-home`" >> ${GITHUB_ENV} + echo "GRAALVM_HOME=`${MX_PATH}/mx graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm @@ -150,6 +151,7 @@ jobs: shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 + call ${{ env.MX_PATH }}\mx.cmd clean call ${{ env.MX_PATH }}\mx.cmd -p substratevm --dy /substratevm --native-images=lib:native-image-agent build call ${{ env.MX_PATH }}\mx.cmd -p substratevm graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME= Date: Sun, 8 Sep 2024 15:11:47 +0200 Subject: [PATCH 7/9] Update gluon-build.yml --- .github/workflows/gluon-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gluon-build.yml b/.github/workflows/gluon-build.yml index 234fe44e4e57..221df579283f 100644 --- a/.github/workflows/gluon-build.yml +++ b/.github/workflows/gluon-build.yml @@ -72,8 +72,9 @@ jobs: - name: Build GraalVM run: | cd substratevm + ${MX_PATH}/mx clean ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build - echo "GRAALVM_HOME=`${MX_PATH}/mx --dy /substratevm graalvm-home`" >> ${GITHUB_ENV} + echo "GRAALVM_HOME=`${MX_PATH}/mx graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm From 71c952c4f8dd6aba6e8b20c1a9d3e26dd222e66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pereda?= Date: Sun, 8 Sep 2024 17:30:18 +0200 Subject: [PATCH 8/9] Update gluon-build.yml --- .github/workflows/gluon-build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gluon-build.yml b/.github/workflows/gluon-build.yml index 221df579283f..17972167cdb8 100644 --- a/.github/workflows/gluon-build.yml +++ b/.github/workflows/gluon-build.yml @@ -72,9 +72,8 @@ jobs: - name: Build GraalVM run: | cd substratevm - ${MX_PATH}/mx clean ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build - echo "GRAALVM_HOME=`${MX_PATH}/mx graalvm-home`" >> ${GITHUB_ENV} + echo "GRAALVM_HOME=`${MX_PATH}/mx --native-images=lib:native-image-agent graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm @@ -140,9 +139,8 @@ jobs: shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - call ${{ env.MX_PATH }}\mx.cmd clean call ${{ env.MX_PATH }}\mx.cmd -p substratevm --dy /substratevm --native-images=lib:native-image-agent build - call ${{ env.MX_PATH }}\mx.cmd -p substratevm graalvm-home > graalvm-home-with-forward-slashes.txt + call ${{ env.MX_PATH }}\mx.cmd -p substratevm --native-images=lib:native-image-agent graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME= Date: Sun, 8 Sep 2024 17:41:47 +0200 Subject: [PATCH 9/9] Update gluon-release.yml --- .github/workflows/gluon-release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gluon-release.yml b/.github/workflows/gluon-release.yml index 19cea43a3232..8b22059d4b52 100644 --- a/.github/workflows/gluon-release.yml +++ b/.github/workflows/gluon-release.yml @@ -81,9 +81,8 @@ jobs: - name: Build GraalVM run: | cd substratevm - ${MX_PATH}/mx clean ${MX_PATH}/mx --dy /substratevm --native-images=lib:native-image-agent build - echo "GRAALVM_HOME=`${MX_PATH}/mx graalvm-home`" >> ${GITHUB_ENV} + echo "GRAALVM_HOME=`${MX_PATH}/mx --native-images=lib:native-image-agent graalvm-home`" >> ${GITHUB_ENV} cd .. - name: Create distribution working-directory: ./vm @@ -151,9 +150,8 @@ jobs: shell: cmd run: | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - call ${{ env.MX_PATH }}\mx.cmd clean call ${{ env.MX_PATH }}\mx.cmd -p substratevm --dy /substratevm --native-images=lib:native-image-agent build - call ${{ env.MX_PATH }}\mx.cmd -p substratevm graalvm-home > graalvm-home-with-forward-slashes.txt + call ${{ env.MX_PATH }}\mx.cmd -p substratevm --native-images=lib:native-image-agent graalvm-home > graalvm-home-with-forward-slashes.txt set /p GRAALVM_HOME=