8222397: x86_32 tests with UseSHA1Intrinsics SEGV due to garbled registers
Reviewed-by: kvn, dsamersoff
This commit is contained in:
parent
7fd0bca8f7
commit
70b807c166
@ -2968,9 +2968,8 @@ class StubGenerator: public StubCodeGenerator {
|
|||||||
|
|
||||||
__ enter();
|
__ enter();
|
||||||
__ subptr(rsp, 8 * wordSize);
|
__ subptr(rsp, 8 * wordSize);
|
||||||
if (multi_block) {
|
handleSOERegisters(true /*saving*/);
|
||||||
__ push(limit);
|
|
||||||
}
|
|
||||||
__ movptr(buf, buf_param);
|
__ movptr(buf, buf_param);
|
||||||
__ movptr(state, state_param);
|
__ movptr(state, state_param);
|
||||||
if (multi_block) {
|
if (multi_block) {
|
||||||
@ -2981,9 +2980,7 @@ class StubGenerator: public StubCodeGenerator {
|
|||||||
__ fast_sha1(abcd, e0, e1, msg0, msg1, msg2, msg3, shuf_mask,
|
__ fast_sha1(abcd, e0, e1, msg0, msg1, msg2, msg3, shuf_mask,
|
||||||
buf, state, ofs, limit, rsp, multi_block);
|
buf, state, ofs, limit, rsp, multi_block);
|
||||||
|
|
||||||
if (multi_block) {
|
handleSOERegisters(false /*restoring*/);
|
||||||
__ pop(limit);
|
|
||||||
}
|
|
||||||
__ addptr(rsp, 8 * wordSize);
|
__ addptr(rsp, 8 * wordSize);
|
||||||
__ leave();
|
__ leave();
|
||||||
__ ret(0);
|
__ ret(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user