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

Jorn Vernee jvernee at openjdk.org
Tue Jun 6 17:24:34 UTC 2023


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14339/files
  - new: https://git.openjdk.org/jdk/pull/14339/files/ccc35e63..9200f57f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14339&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14339&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/14339.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14339/head:pull/14339

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


More information about the core-libs-dev mailing list