mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 09:04:41 +02:00
8255606: Enable concurrent stack processing on x86_32 platforms
Reviewed-by: shade, rkennke, eosterlund
This commit is contained in:
parent
ca216bae1a
commit
134e22a00f
7 changed files with 49 additions and 29 deletions
|
@ -80,19 +80,29 @@ void ConversionStub::emit_code(LIR_Assembler* ce) {
|
|||
#endif // !_LP64
|
||||
|
||||
void C1SafepointPollStub::emit_code(LIR_Assembler* ce) {
|
||||
#ifdef _LP64
|
||||
__ bind(_entry);
|
||||
InternalAddress safepoint_pc(ce->masm()->pc() - ce->masm()->offset() + safepoint_offset());
|
||||
#ifdef _LP64
|
||||
__ lea(rscratch1, safepoint_pc);
|
||||
__ movptr(Address(r15_thread, JavaThread::saved_exception_pc_offset()), rscratch1);
|
||||
#else
|
||||
const Register tmp1 = rcx;
|
||||
const Register tmp2 = rdx;
|
||||
__ push(tmp1);
|
||||
__ push(tmp2);
|
||||
|
||||
__ lea(tmp1, safepoint_pc);
|
||||
__ get_thread(tmp2);
|
||||
__ movptr(Address(tmp2, JavaThread::saved_exception_pc_offset()), tmp1);
|
||||
|
||||
__ pop(tmp2);
|
||||
__ pop(tmp1);
|
||||
#endif /* _LP64 */
|
||||
assert(SharedRuntime::polling_page_return_handler_blob() != NULL,
|
||||
"polling page return stub not created yet");
|
||||
|
||||
address stub = SharedRuntime::polling_page_return_handler_blob()->entry_point();
|
||||
__ jump(RuntimeAddress(stub));
|
||||
#else
|
||||
ShouldNotReachHere();
|
||||
#endif /* _LP64 */
|
||||
}
|
||||
|
||||
void CounterOverflowStub::emit_code(LIR_Assembler* ce) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue