wankunde opened a new pull request, #52678: URL: https://github.com/apache/spark/pull/52678
### What changes were proposed in this pull request? Both G1GC and ZGC needs extra object header (usually 16 bytes in 64bit system) when allocating region or ZPage for java long array, so the really bytes allocated is pageSize+16. So we need consider the object header when allocating spark pages. ### Why are the changes needed? This PR try to optimize the pageSize to avoid memory waste. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Exists UT, see [SPARK-37593](https://issues.apache.org/jira/browse/SPARK-37593) ### Was this patch authored or co-authored using generative AI tooling? No -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
