Integrated: 8338888: SystemDictionary::class_name_symbol has incorrect length check

David Holmes dholmes at openjdk.org
Wed Aug 28 21:19:26 UTC 2024


On Mon, 26 Aug 2024 02:49:42 GMT, David Holmes <dholmes at openjdk.org> wrote:

> The name length check was incorrectly truncating the length to an int, which is wrong if the name is > `INT_MAX`. Added a test for this case to the existing test cases and fixed an issue with the call to `Exceptions::fthrow` that can hit the `INT_MAX` limitations of `os::vsnprintf` (this is the first in a serious of fixes that will mainly be done under [JDK-8328882](https://bugs.openjdk.org/browse/JDK-8328882) or subtasks thereof).
> 
> Testing:
>  - updated test
>  - tiers 1-3 (sanity)
> 
> Thanks

This pull request has now been integrated.

Changeset: 72a49005
Author:    David Holmes <dholmes at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/72a49005ee8c4aeb6dcf3eff4c56576a2b4d0081
Stats:     98 lines in 3 files changed: 82 ins; 0 del; 16 mod

8338888: SystemDictionary::class_name_symbol has incorrect length check

Reviewed-by: stuefe, kbarrett, coleenp

-------------

PR: https://git.openjdk.org/jdk/pull/20709


More information about the hotspot-runtime-dev mailing list