Fix mmap MT bug on Windows

This commit is contained in:
Justine Tunney 2024-10-31 23:06:06 -07:00
parent 9add248c9b
commit 913b573661
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 9 additions and 11 deletions

View file

@ -32,7 +32,7 @@ struct Maps {
_Atomic(uintptr_t) freed;
size_t count;
size_t pages;
_Atomic(char *) pick;
char *pick;
struct Map stack;
struct Map guard;
};
@ -49,7 +49,6 @@ bool __maps_lock(void);
void __maps_check(void);
void __maps_unlock(void);
void *__maps_randaddr(void);
void *__maps_pickaddr(size_t);
void __maps_add(struct Map *);
void __maps_free(struct Map *);
void __maps_insert(struct Map *);