RFR: 8338888: SystemDictionary::class_name_symbol has incorrect length check
David Holmes
dholmes at openjdk.org
Tue Aug 27 01:28:13 UTC 2024
On Mon, 26 Aug 2024 21:11:12 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> We can run native code without othervm but I switched to othervm both for the logging and to make it more likely we would not be short on memory.
>>
>> The malloc'd name is used to construct the error message but not used as part of the error message so can be freed once the JNI call is complete.
>
> othervm seems like a good choice for this but now when you return JNI_FALSE, where do you free the string?
If we return false then the malloc failed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20709#discussion_r1732001795
More information about the hotspot-runtime-dev
mailing list