mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
explicitly load jump target in tableswitch to avoid retaining stale memory sites
This commit is contained in:
parent
c56f37197c
commit
9495d03dc6
@ -3511,8 +3511,9 @@ compile(MyThread* t, Frame* initialFrame, unsigned ip,
|
||||
|
||||
saveStateAndCompile(t, frame, defaultIp);
|
||||
|
||||
c->jmp(c->memory(start, 0, c->sub(4, c->constant(bottom), key),
|
||||
BytesPerWord));
|
||||
c->jmp(c->load(BytesPerWord, BytesPerWord,
|
||||
c->memory(start, 0, c->sub(4, c->constant(bottom), key),
|
||||
BytesPerWord)));
|
||||
|
||||
Compiler::State* state = c->saveState();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user