RFR: 8372245: GTest globalDefinitions.format_specifiers cannot run without VM [v4]
Kim Barrett
kbarrett at openjdk.org
Wed Feb 11 17:51:11 UTC 2026
On Wed, 11 Feb 2026 12:49:36 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
>> 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 one commit:
>
> gtest globalDefinitions.format_specifiers cannot run without VM
Looks good.
-------------
PR Review: https://git.openjdk.org/jdk/pull/28415#pullrequestreview-3786323125
More information about the hotspot-dev
mailing list