mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
Original commit message:
AIX: Fix race condition in DecommitPages
The current implementation of DecommitPages could lead to a race
condition where another thread maps the same region of memory right after we unmap it.
This is currently causing test failures on Node.js:
https://github.com/nodejs/node/issues/62647
As a workaround we avoid unmapping the address space and instead
mark the region as inaccessible using mprotect. We originally
considered using madvise to release physical memory, but it is a
no-op on AIX and was omitted from this implementation.
IT:105
Change-Id: I8271a562be2e7ebcb685a2dd3b7425a38bebe1c9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8193436
Reviewed-by: Anton Bikineev <bikineev@chromium.org>
Commit-Queue: Milad Farazmand <mfarazma@ibm.com>
Reviewed-by: Milad Farazmand <mfarazma@ibm.com>
Cr-Commit-Position: refs/heads/main@{#109206}
Refs: https://github.com/v8/v8/commit/ea9c016f26ad274ab86595e8d3fc8712378706dd
Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/66570
Refs: https://github.com/nodejs/node/issues/62647
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>