This is an automated email from the ASF dual-hosted git repository.
sarutak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new cf5c7b684cec [SPARK-53966][CORE][FOLLOWUP] Support
`is(Serial|Parallel)GC`
cf5c7b684cec is described below
commit cf5c7b684cec42668afd4ea142199b6785416d67
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Oct 24 04:28:54 2025 +0900
[SPARK-53966][CORE][FOLLOWUP] Support `is(Serial|Parallel)GC`
### What changes were proposed in this pull request?
This PR aims to support `isSerialGC` and `isParallelGC` additionally as a
follow-up of the following PR.
- #52678
### Why are the changes needed?
- To be exhaustive (up to Java 25 environment)
- Note that `UseEpsilonGC` is excluded because it's not a
production-purpose GC.
### Does this PR introduce _any_ user-facing change?
No, these are new APIs.
### How was this patch tested?
Pass the CIs and manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #52708 from dongjoon-hyun/SPARK-53966.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Kousuke Saruta <[email protected]>
---
core/src/main/scala/org/apache/spark/util/Utils.scala | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala
b/core/src/main/scala/org/apache/spark/util/Utils.scala
index 98dd5dc1e16d..fbbd436945ac 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -3135,6 +3135,16 @@ private[spark] object Utils
attempt.isSuccess && attempt.get == 0
}
+ /**
+ * Return whether we are using SerialGC or not
+ */
+ lazy val isSerialGC: Boolean = checkUseGC("UseSerialGC")
+
+ /**
+ * Return whether we are using ParallelGC or not
+ */
+ lazy val isParallelGC: Boolean = checkUseGC("UseParallelGC")
+
/**
* Return whether we are using G1GC or not
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]