Skip to content

Commit

Permalink
Expand the virtual address space on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jul 27, 2024
1 parent efb3a34 commit 690d3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc/intrin/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define MMDEBUG IsModeDbg()
#define MAX_SIZE 0x0ff800000000ul
#define MAX_TRIES 10
#define MAX_TRIES 50

#define MAP_FIXED_NOREPLACE_linux 0x100000

Expand Down Expand Up @@ -379,7 +379,7 @@ static int __munmap(char *addr, size_t size) {
void *__maps_randaddr(void) {
uintptr_t addr;
addr = _rand64();
addr &= 0x007fffffffff;
addr &= 0x3fffffffffff;
addr |= 0x004000000000;
addr &= -__gransize;
return (void *)addr;
Expand Down

0 comments on commit 690d3df

Please sign in to comment.