Challenge: Find the bug in the fix-answer

added by DotNetKicks
1/31/2018 1:24:25 PM

2 Kicks, 253 Views

The logic here is that we typically want to request memory in power of 2 increments. So if asked for 17MB, we'll allocate 32MB. This code is actually part of our memory allocator, which request memory from the operating system, so it is fine if we allocate more, we'll just use that in a bit.


0 comments