On windows, aligned memory block should be freed with _aligned_free(). For this case, this patch introduces new bmalloc API freealign().
Created attachment 317492 [details] patch
Created attachment 317498 [details] patch
Created attachment 317521 [details] patch
Comment on attachment 317521 [details] patch We don't use the DebugHeap on Windows.