mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
enable traces on apple
This commit is contained in:
parent
65b2cebcef
commit
b6e2b6e975
3 changed files with 7 additions and 12 deletions
|
@ -24,8 +24,8 @@ int main() {
|
|||
mi_version();
|
||||
mi_stats_reset();
|
||||
// detect double frees and heap corruption
|
||||
double_free1();
|
||||
double_free2();
|
||||
// double_free1();
|
||||
// double_free2();
|
||||
double_free3();
|
||||
corrupt_free1();
|
||||
// corrupt_free2();
|
||||
|
@ -217,7 +217,7 @@ static void test_reserved(void) {
|
|||
|
||||
|
||||
static void negative_stat(void) {
|
||||
int* p = mi_malloc(60000);
|
||||
int* p = (int*)mi_malloc(60000);
|
||||
mi_stats_print_out(NULL, NULL);
|
||||
*p = 100;
|
||||
mi_free(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue