Skip to content

Commit edae1ca

Browse files
committed
Sulong: Formatting
1 parent ad90fca commit edae1ca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/pthread/LLVMPThreadContext.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,16 @@ public LLVMPThreadContext(TruffleLanguage.Env env, LLVMLanguage language, DataLa
9595

9696
@TruffleBoundary
9797
public void joinAllThreads() {
98-
final Collection<WeakReference<Thread>> threadsToJoin;
98+
final Collection<WeakReference<Thread>> threads;
99+
99100
synchronized (threadLock) {
100101
this.isCreateThreadAllowed = false;
101-
threadsToJoin = threadStorage.values();
102+
threads = threadStorage.values();
102103
}
103-
for (WeakReference<Thread> createdThread : threadsToJoin) {
104+
105+
for (WeakReference<Thread> thread : threads) {
104106
try {
105-
Thread t = createdThread.get();
107+
Thread t = thread.get();
106108
if (t != null) {
107109
t.join();
108110
}

0 commit comments

Comments
 (0)