From d1f708af595cf0a99b8bb5f8b16a3cfd29e34bce Mon Sep 17 00:00:00 2001 From: daan Date: Fri, 26 Jul 2019 13:01:43 -0700 Subject: [PATCH] add MIMALLOC_OVERRIDE setting to disable redirection at runtime --- bin/mimalloc-redirect.dll | Bin 34816 -> 35840 bytes test/main-override.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mimalloc-redirect.dll b/bin/mimalloc-redirect.dll index d3427e9548492d44174d12a5c8144fd62b5d2bfe..14ed46ec2c3aebed56614e50a464803f4644b397 100644 GIT binary patch delta 2663 zcmbtVeNa@_6~Fhf%Pz>W%ffalU61gs9kJ>2X& zLe6rZ24V=52xS#xuZD z(!h3Fz)JLB6IozoIbauUU^i32%K4tC1*@{M?`pE7Of%#QbHO^0YHBDOtd&Q6Q3n>~ z(j*VNkDHXEim6dlG8IJKQ?GJgI}a8z4cLDtyR;`M9h4s=t`O*Md12Dq3CRW&BK3|% zwR(0Xr7-Ce1m(-?>~Ttd@(Fbn(y?Mgq4^bcxeHhtmbxz$unXxH)@jH{E>l%b9edYc zOEaiTEl1d0WTBMYqzTl-gMZAvGUOXhs;fa@3H#QNm;6(8r!7&bMN*e8R%CFP)78}+ z;1kIssq>Srp+g?`GSeAL%uHSN0-rDp8FS65=KHgni)=i#N{$#mqWZ6ec&SQD*VDeD ze`i#|$4(jBYMX{gj!E&8NBLjqz(gAWmHe>hNk zjz^Gog^BSmZjBE+))~7m8)5ezPr5(c#*;Z<8BgZmPDtV)io!XoaB_w5j9YZRfxKL> zBIL?wFTxnlglB6DEL()`evb@NuU9OK-hLSG&Bc3jk$@&vExImiSGVF!(3B{3UE;@u zGhD)kHA~oZx{*FTkl_{Df5_HnWa}-@;ZCkZliA*kxsHFXCFDI`Nc7GFgymy$Re7ZD z`vpk*G1uc(Nc8;&OwL#*)V|3C%d^6+G`7a_j&R4sCM~;zJKU&tu5_SUG)V`%qF(B{ ze*$lTgsVEo-^oCV@obM6hKS?Qm4>Ivk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F>RlaZf0+#HL}RqM}?Jb@{EicDwJJi9hp}=>l-nt zIX%!i<8jV{#<;BxB(P1pm;>4?4-{)_z?<0zX;awGS(}BK+u4$FM}%{$m^r&Z=#R-I z*?KDMin8-5S!`*}bm6|Jyf3GR3N@ElwfIotk>%*?;Y;j*7#3~~GMD3C$qg4j9WnaU zpmKQ6^)}nE5Am+Qagc=_c8~V1<9;L}D+5_XbuNrv_#LN#mu5DC$}x6p(qv0+3l$b$ zWZUz+!qkiGWZokCo(u7KWgFJ>^8-JD4^@3Q#}VkJ>eTV9T}rjp)nl`X-86O?SxB$m zrkztSe=N+2`%q;4O#qW(ZPSm$d$^U^%{tO9%R~Z&PXg7 zCT=0pgILcrxnsJCGJlDcQu&dRUj$tWB`KQ;D=90G8_V_xxa62-))cy1E}r#-M?TXa z>gA!JC4pHIyvJJ3($Hx;uGU&YhJbpJkdyOq-2&G`#=##3?t@6+oxl^23E;iJRSrTL zz`KF@x%ex9R|ESYmEc3bjrgc)!6U$`eBAxuO~4{2wpL3*q#fioWDx=u7a@xwTfoD> zlaQU@1HeA~JznNH;|XyT5ON5-2{_Y(Jf07nKY@_9!P|j{CKB>GI4LB=JP9v9_)_3E zkPYBN!1ufw9Ad3}zQLE^YdDHzjGZbTQt_0E11ertap6%$6P6o$`5#6dI(B$d*8eQT ZR)mfiRtM`F8VVuuw`FlEn>ODx`~zw1Jd*$b diff --git a/test/main-override.cpp b/test/main-override.cpp index 6c7fc0d..58d06c6 100644 --- a/test/main-override.cpp +++ b/test/main-override.cpp @@ -30,12 +30,12 @@ int main() { free(p1); p1 = malloc(8); char* s = mi_strdup("hello\n"); - free(p2); + mi_free(p2); p2 = malloc(16); p1 = realloc(p1, 32); free(p1); free(p2); - free(s); + mi_free(s); Test* t = new Test(42); delete t; t = new (std::nothrow) Test(42);