Skip to content

Commit

Permalink
Merge pull request #18310 from tajila/issue1
Browse files Browse the repository at this point in the history
Set thread.started after running <init>
  • Loading branch information
babsingh authored Oct 20, 2023
2 parents 43d41d5 + ed6fe39 commit 6663162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/vm/callin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ initializeAttachedThreadImpl(J9VMThread *currentThread, const char *name, j9obje
*--currentThread->sp = (UDATA)threadName;
#else /* J9VM_IVE_RAW_BUILD */
/* J9 constructor takes thread name, thread group, priority and isDaemon */
J9VMJAVALANGTHREAD_SET_STARTED(currentThread, threadObject, JNI_TRUE);
*--currentThread->sp = (UDATA)threadName;
*--currentThread->sp = (UDATA)threadGroup;
*(I_32*)--currentThread->sp = priority;
Expand All @@ -590,6 +589,7 @@ initializeAttachedThreadImpl(J9VMThread *currentThread, const char *name, j9obje
currentThread->returnValue = J9_BCLOOP_RUN_METHOD;
currentThread->returnValue2 = (UDATA)J9VMJAVALANGTHREAD_INIT_METHOD(vm);
c_cInterpreter(currentThread);
J9VMJAVALANGTHREAD_SET_STARTED(currentThread, initializee->threadObject, JNI_TRUE);
}
}
done:
Expand Down

0 comments on commit 6663162

Please sign in to comment.