mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
clear Thread::stack before vmInvoke_safeStack in compile-arm.S
This commit is contained in:
parent
d5d414aa52
commit
6c53068f4f
@ -96,6 +96,14 @@ GLOBAL(vmInvoke_returnAddress):
|
||||
|
||||
// restore frame
|
||||
ldr sp, [sp]
|
||||
|
||||
// clear MyThread::stack to avoid confusing another thread calling
|
||||
// java.lang.Thread.getStackTrace on this one. See
|
||||
// MyProcess::getStackTrace in compile.cpp for details on how we get
|
||||
// a reliable stack trace from a thread that might be interrupted at
|
||||
// any point in its execution.
|
||||
mov r5,#0
|
||||
str r5,[r8,#THREAD_STACK]
|
||||
|
||||
.globl GLOBAL(vmInvoke_safeStack)
|
||||
GLOBAL(vmInvoke_safeStack):
|
||||
|
Loading…
Reference in New Issue
Block a user