This is an automated email from the ASF dual-hosted git repository.

gianm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 3985d927a66 test: enable compact object headers across test JVMs 
(#20271)
3985d927a66 is described below

commit 3985d927a667ff0c53c3dd1796274ee36d4280ca
Author: Frank Chen <[email protected]>
AuthorDate: Thu Sep 10 10:58:17 2026 +0800

    test: enable compact object headers across test JVMs (#20271)
---
 .github/workflows/docker-tests.yml | 8 ++++++--
 embedded-tests/pom.xml             | 1 +
 pom.xml                            | 2 ++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/docker-tests.yml 
b/.github/workflows/docker-tests.yml
index 5e4186b557e..ff4580755cd 100644
--- a/.github/workflows/docker-tests.yml
+++ b/.github/workflows/docker-tests.yml
@@ -35,10 +35,14 @@ jobs:
         run: .github/scripts/build-dist
       - name: Build the Docker image
         run: |
-          DOCKER_BUILDKIT=1 docker build \
+          set -o pipefail
+          {
+            cat distribution/docker/Dockerfile
+            printf '\nENV JAVA_TOOL_OPTIONS="-XX:+UseCompactObjectHeaders"\n'
+          } | DOCKER_BUILDKIT=1 docker build \
             --build-arg BUILD_FROM_SOURCE=false \
             -t "$DRUID_DIST_IMAGE_NAME" \
-            -f distribution/docker/Dockerfile .
+            -f - .
       - name: Run Docker tests
         id: run-it
         run: .github/scripts/run_docker-tests
diff --git a/embedded-tests/pom.xml b/embedded-tests/pom.xml
index f8241800929..705ab723fe4 100644
--- a/embedded-tests/pom.xml
+++ b/embedded-tests/pom.xml
@@ -943,6 +943,7 @@
               </includes>
               <redirectTestOutputToFile>true</redirectTestOutputToFile>
               <argLine>
+                -XX:+UseCompactObjectHeaders
                 ${jdk.strong.encapsulation.argLine}
                 -Xmx2048m
                 -XX:MaxDirectMemorySize=2500m
diff --git a/pom.xml b/pom.xml
index ef5b68d8f8f..6a397879886 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2047,6 +2047,7 @@
                         <!-- locale settings must be set on the command line 
before startup -->
                         <!-- set default options -->
                         <argLine>
+                            -XX:+UseCompactObjectHeaders
                             @{jacocoArgLine}
                             ${jdk.strong.encapsulation.argLine}
                             -Xmx2048m
@@ -2251,6 +2252,7 @@
                             <!-- locale settings must be set on the command 
line before startup -->
                             <!-- set heap size to work around 
https://github.com/travis-ci/travis-ci/issues/3396 -->
                             <argLine>
+                                -XX:+UseCompactObjectHeaders
                                 -Xmx768m -Duser.language=en -Duser.country=US 
-Dfile.encoding=UTF-8
                                 -XX:+ExitOnOutOfMemoryError
                                 -XX:+HeapDumpOnOutOfMemoryError


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to