Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug introduced by page bitmap removal
The page bitmap removal in PAL that was made recently has introduced
a subtle bug when the `VIRTUALCommitMemory` was returning incorrect
address when a region of memory was reserved and later a smaller
subset of that region that didn't start at the beginning of the
reserved region was committed. It was returning the address of
the originally reserved region.

While we have not hit any issues in the main branch, a backport
of this change has caused CI failures on macOS due to the issue.
  • Loading branch information
janvorli committed Jan 5, 2023
commit d2c2334f4a085a5ca38e22dccfd325bfd7f6260b
2 changes: 1 addition & 1 deletion src/coreclr/pal/src/map/virtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ VIRTUALCommitMemory(
madvise((void *) StartBoundary, MemSize, MADV_DODUMP);
#endif

pRetVal = (void *) (pInformation->startBoundary);
pRetVal = (void *) StartBoundary;
goto done;

error:
Expand Down