Merge pull request #228 from dicej/expect-executable

add expect call to ensure tryAllocateExecutable actually succeeds
This commit is contained in:
Joshua Warner 2014-04-11 21:39:39 -06:00
commit 2c5208cb65

View File

@ -9095,6 +9095,9 @@ class MyProcessor: public Processor {
if (codeAllocator.memory.begin() == 0) {
codeAllocator.memory.items = static_cast<uint8_t*>(
s->tryAllocateExecutable(ExecutableAreaSizeInBytes));
expect(t, codeAllocator.memory.items);
codeAllocator.memory.count = ExecutableAreaSizeInBytes;
}
#endif