RFR: 8308445: Linker should check that capture state segment is big enough [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Jun 7 10:21:55 UTC 2023


On Tue, 6 Jun 2023 17:24:34 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Fix the bug mentioned in the JBS issue.
>> 
>> The implementation is updated to slice the capture state segment using the capture state layout. This checks both that the segment is big enough, and that it is properly aligned.
>> 
>> Additionally, I added a check for `MS::NULL` since this is also an illegal value we can catch early.
>> 
>> Test cases are added for all three invalid values.
>> 
>> Testing: `jdk_foreign` test suite.
>
> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
> 
>   rename MH field

Marked as reviewed by mcimadamore (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/14339#pullrequestreview-1467264730


More information about the core-libs-dev mailing list