mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Use better memory strategy on Windows
Rather than using the the rollo global to pick addresses, we select them randomly now using a conservative vaspace.
This commit is contained in:
parent
6a5d4ed65b
commit
2018cac11f
13 changed files with 113 additions and 124 deletions
|
@ -259,6 +259,8 @@ TEST(mprotect, weirdSize) {
|
|||
}
|
||||
|
||||
TEST(mprotect, outerOverlap) {
|
||||
if (IsWindows())
|
||||
return; // needs carving
|
||||
char *p;
|
||||
int gransz = getgransize();
|
||||
EXPECT_NE(MAP_FAILED, (p = mmap(0, gransz * 3, PROT_READ | PROT_EXEC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue