In Servo we use heapsize to be able to report about heap memory usage. It would be way more robust if heapsize's function heap_size_of were in liballoc itself.
Probably that function should be parameterised by T instead of taking a *mut c_void, to handle alignment without relying on HeapValidate on Windows.
In Servo we use heapsize to be able to report about heap memory usage. It would be way more robust if heapsize's function
heap_size_ofwere in liballoc itself.Probably that function should be parameterised by
Tinstead of taking a*mut c_void, to handle alignment without relying onHeapValidateon Windows.