Merge branch 'dev' into dev-exp

This commit is contained in:
daan 2019-07-04 14:46:53 -07:00
commit 983c96a238
9 changed files with 131 additions and 84 deletions

View file

@ -12,6 +12,14 @@ void free_p() {
return;
}
class Test {
private:
int i;
public:
Test(int x) { i = x; }
~Test() { }
};
int main() {
mi_stats_reset();
atexit(free_p);
@ -26,8 +34,10 @@ int main() {
free(p1);
free(p2);
free(s);
Test* t = new Test(42);
delete t;
mi_collect(true);
mi_stats_print(NULL);
// mi_stats_print(NULL); // MIMALLOC_VERBOSE env is set to 2
return 0;
}