You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/03/03 03:33:33 UTC
[PR] [SPARK-55808] Add `UseCompactObjectHeaders` to `gradle.properties` [spark-kubernetes-operator]
dongjoon-hyun opened a new pull request, #534:
URL: https://github.com/apache/spark-kubernetes-operator/pull/534
### What changes were proposed in this pull request?
This PR proposes to add `-XX:+UseCompactObjectHeaders` to the `gradle.properties`.
Since `Apache Spark K8s Operator` uses Java 25 toolchain always, we are ready to use this feature.
https://github.com/apache/spark-kubernetes-operator/blob/5af667eb410e886f9180e124a14ec3241d57137c/build.gradle#L54
### Why are the changes needed?
To use Java 25 Compact Object Headers (`-XX:+UseCompactObjectHeaders`) for the `spark-kubernetes-operator` container. This feature is known to reduce significantly the memory footprint of Java objects.
- https://openjdk.org/jeps/519
> In one setting, the SPECjbb2015 benchmark uses [22% less heap space and 8% less CPU time](https://github.com/rkennke/talks/blob/master/Lilliput-FOSDEM-2025.pdf).
>
> In another setting, the number of garbage collections done by SPECjbb2015 is [reduced by 15%](https://bugs.openjdk.org/browse/JDK-8350457?focusedId=14766358&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14766358), with both the G1 and Parallel collectors.
>
> A highly parallel JSON parser benchmark [runs in 10% less time](https://www.reddit.com/r/scala/comments/1jptiv3/xxusecompactobjectheaders_is_your_new_turbo/?rdt=40432).
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55808] Add `UseCompactObjectHeaders` to `gradle.properties` [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #534:
URL: https://github.com/apache/spark-kubernetes-operator/pull/534#issuecomment-3988439827
The root cause of failures is that Gradle itself needs Java 25 before setting `toolchain`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55808] Use `-XX:+UseCompactObjectHeaders` for Java 25+ GitHub Actions `build-test` jobs [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #534: [SPARK-55808] Use `-XX:+UseCompactObjectHeaders` for Java 25+ GitHub Actions `build-test` jobs
URL: https://github.com/apache/spark-kubernetes-operator/pull/534
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55808] Use `-XX:+UseCompactObjectHeaders` for Java 25+ GitHub Actions `build-test` jobs [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #534:
URL: https://github.com/apache/spark-kubernetes-operator/pull/534#issuecomment-3988524117
Thank you, @viirya . All tests passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-55808] Use `-XX:+UseCompactObjectHeaders` for Java 25+ GitHub Actions `build-test` jobs [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #534:
URL: https://github.com/apache/spark-kubernetes-operator/pull/534#issuecomment-3988527678
Merged to main
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org