Integrated: 8302790: Set FileMapRegion::mapped_base() to null if mapping fails

Matias Saavedra Silva matsaave at openjdk.org
Thu Dec 7 19:35:32 UTC 2023


On Tue, 28 Nov 2023 22:24:43 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: fe4c0a2f
Author:    Matias Saavedra Silva <matsaave at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fe4c0a2f04cc45e6e27e6d8a8941bbbf9a8def8c
Stats:     29 lines in 2 files changed: 12 ins; 9 del; 8 mod

8302790: Set FileMapRegion::mapped_base() to null if mapping fails

Reviewed-by: iklam, ccheung

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

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


More information about the hotspot-runtime-dev mailing list