mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
use 2-6TiB area for hints to accommodate pre-windows8 better
This commit is contained in:
parent
e64474e06b
commit
5f596056c9
2 changed files with 16 additions and 11 deletions
|
@ -42,7 +42,7 @@ int main() {
|
|||
padding_shrink();
|
||||
various_tests();
|
||||
//test_mt_shutdown();
|
||||
//test_aslr();
|
||||
//fail_aslr();
|
||||
mi_stats_print(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
@ -215,5 +215,5 @@ void fail_aslr() {
|
|||
size_t sz = (4ULL << 40); // 4TiB
|
||||
void* p = malloc(sz);
|
||||
printf("pointer p: %p: area up to %p\n", p, (uint8_t*)p + sz);
|
||||
*(int*)0x7FFFFFFF000 = 0; // should segfault
|
||||
*(int*)0x5FFFFFFF000 = 0; // should segfault
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue