mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
set Thread.blocker during thread construction
This avoids an NPE in Thread.blockedOn.
This commit is contained in:
parent
6506760dd9
commit
916e6787de
@ -309,6 +309,9 @@ class MyClasspath : public Classpath {
|
||||
|
||||
PROTECT(t, thread);
|
||||
|
||||
object blockerLock = makeJobject(t);
|
||||
set(t, thread, ThreadBlockerLock, blockerLock);
|
||||
|
||||
const unsigned BufferSize = 256;
|
||||
char buffer[BufferSize];
|
||||
unsigned length = vm::snprintf(buffer, BufferSize, "Thread-%p", thread);
|
||||
|
Loading…
Reference in New Issue
Block a user