diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 87536f7509..b2afce9437 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -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);