RFR: 8372245: GTest globalDefinitions.format_specifiers cannot run without VM [v2]
Axel Boldt-Christmas
aboldtch at openjdk.org
Thu Nov 20 13:17:25 UTC 2025
> globalDefinitions.format_specifiers uses `ResourceMark` which requires a created VM.
> Either we stop using resource allocations, or we run the test in VM.
>
> I propose we let this test simply use `stringStream::base` rather than `stringStream::as_string` which is an already managed string and the stream is in scope for as long as the string is used. The string is guaranteed to be valid as long as we do not write to the stream.
Axel Boldt-Christmas has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
- Merge branch 'JDK-8372241' into JDK-8372245
- gtest globalDefinitions.format_specifiers cannot run without VM
-------------
Changes: https://git.openjdk.org/jdk/pull/28415/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28415&range=01
Stats: 5 lines in 2 files changed: 0 ins; 4 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/28415.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28415/head:pull/28415
PR: https://git.openjdk.org/jdk/pull/28415
More information about the hotspot-dev
mailing list