mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
Merge pull request #228 from dicej/expect-executable
add expect call to ensure tryAllocateExecutable actually succeeds
This commit is contained in:
commit
2c5208cb65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user