RFR: 8312401: SymbolTable::do_add_if_needed hang when requesting length exceeds max_symbol_length [v3]
David Holmes
dholmes at openjdk.org
Tue Jul 25 05:18:42 UTC 2023
On Mon, 24 Jul 2023 17:33:12 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
>> Please review the simple fix to resolve infinite loop in SymbolTable::do_add_if_needed caused by extra long symbol string that exceeds Symbol::max_length(). See JDK-8312401 for details.
>>
>> The jtreg test is converted from a test case constructed by @cushon.
>
> Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:
>
> Revert the change that truncates the string in String::as_symbol.
I agree with the changes in the PR as presented to fix the problem at hand. Any other misuses of String->Symbol conversion should be handled by the new RFE.
Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14938#pullrequestreview-1544652111
More information about the hotspot-runtime-dev
mailing list