Closed AridTag closed 2 years ago
Awesome to see someone pushed a fix for this :) I had something ready but haven't pushed myself yet.
Are you sure there is a whole new implementation? It might be better to register the wrapper function as jag::HeapInterface::CheckedAlloc
, since it seems to only add error checking.
No, I'm not positive that it's a whole new implementation. The inclusion of a debug message referencing NewCustom.cpp leads me to believe they are working on a new HeapInterface implementation to replace what was there before. And adding a new global function to be called so that the inner implementation can be swapped out as needed without having to change a bunch of code, which I imagine they had to do to implement this.
I could certainly change it to register as that if you would prefer it doesn't much matter to me
I should also note, that I had renamed HeapInterface to HeapInterfaceNew building on my assumption. But obviously I can roll that back as well
Ah that makes sense, yeah. I think for now keeping it consistent with the other naming would be good, to avoid having a lot of random names. Both are related to the same so it should be fine.
If you have a different opinion/disagree please let me know :)
You got it boss. Renamed to CheckedAlloc and undid other renames.
Oh, yikes. I used intellij to format the document. That's a huge diff. Sorry about that. Let me fix that
Jag have added a new implementation of HeapInterface and a wrapper function that gets called instead of calling HeapInterface::Alloc directly