Skip to content

cvm/overlay: Fix gc/startup_warnings tests#139

Merged
duanyangjing merged 2 commits into
bytedance:jdk17u-target8from
duanyangjing:aime/1779098312-fix-gc-startup-warnings
May 20, 2026
Merged

cvm/overlay: Fix gc/startup_warnings tests#139
duanyangjing merged 2 commits into
bytedance:jdk17u-target8from
duanyangjing:aime/1779098312-fix-gc-startup-warnings

Conversation

@duanyangjing
Copy link
Copy Markdown
Collaborator

@duanyangjing duanyangjing commented May 20, 2026

TestDefaultMaxRAMFraction.java: JDK 17 still warns for DefaultMaxRAMFraction, but the warning is emitted by the JDK17 hotspot deprecation path with different wording; update the expected text to the JDK17 hotspot message.

Other tests have options removed in JDK 17, so keep them excluded

gc/startup_warnings/TestCMSForegroundFlags.java — Options removed: UseCMSCompactAtFullCollection, CMSFullGCsBeforeCompaction, UseCMSCollectionPassing
gc/startup_warnings/TestCMSIncrementalMode.java — Options removed: UseConcMarkSweepGC, CMSIncrementalMode
gc/startup_warnings/TestDefNewCMS.java — Options removed: UseParNewGC, UseConcMarkSweepGC
gc/startup_warnings/TestIncGC.java — Options removed: -Xincgc (CMS incremental mode)
gc/startup_warnings/TestParNewSerialOld.java — Options removed: UseParNewGC

Add the original JDK 8 gc/startup_warnings test file to cvm/overlay/jdk8u as the baseline for the follow-up overlay changes.

This keeps the compatibility adjustments isolated in the second commit while preserving the unmodified upstream test source in the overlay history.
Adjust the TestDefaultMaxRAMFraction.java startup warning test to match the JDK17 hotspot behavior while keeping the changes isolated under the JDK 8 overlay.

- TestDefaultMaxRAMFraction.java: JDK 17 still warns for DefaultMaxRAMFraction, but the warning is emitted by the JDK17 hotspot deprecation path with different wording; update the expected text to the JDK17 hotspot message.
@duanyangjing duanyangjing merged commit 7bfb290 into bytedance:jdk17u-target8 May 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants