explicitly load jump target in tableswitch to avoid retaining stale memory sites

This commit is contained in:
Joel Dice 2009-01-04 15:56:47 -07:00
parent c56f37197c
commit 9495d03dc6

View File

@ -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();