RFR: 8302790: Set FileMapRegion::mapped_base() to null if mapping fails [v2]

Matias Saavedra Silva matsaave at openjdk.org
Wed Nov 29 18:28:22 UTC 2023


> For cleanliness, we should reset FileMapRegion::mapped_base() to nullptr in case the mapping fails for any reasons. This patch moves the `set_mapped_base()` call after all the checks complete so it can remain as null in case checks fail. Verified with tier 1-5 tests.

Matias Saavedra Silva has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into mapped_base_8302790
 - Moved assignment after checks
 - 8302790: Set FileMapRegion::mapped_base() to null if mapping fails

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16866/files
  - new: https://git.openjdk.org/jdk/pull/16866/files/eb425fa3..e15aae2d

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

  Stats: 19621 lines in 827 files changed: 13683 ins; 3384 del; 2554 mod
  Patch: https://git.openjdk.org/jdk/pull/16866.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16866/head:pull/16866

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


More information about the hotspot-runtime-dev mailing list