uti: Replace dead uti thread with new mcexec thread in proc->tids

Change-Id: Ic6e906dd1bfac1b07f1317732cbe0a5191831cd8
This commit is contained in:
Masamichi Takagi
2018-09-03 18:02:35 +09:00
parent 96aab7e215
commit 04d4145b3e
7 changed files with 68 additions and 16 deletions

View File

@@ -1575,7 +1575,7 @@ done:
return 0;
}
if (tthread->thread_offloaded) {
if (tthread->uti_state == UTI_STATE_RUNNING_IN_LINUX) {
interrupt_syscall(tthread, sig);
release_thread(tthread);
return 0;

View File

@@ -1370,7 +1370,7 @@ done:
}
/* Forward signal to Linux by interrupt_syscall mechanism */
if (tthread->thread_offloaded) {
if (tthread->uti_state == UTI_STATE_RUNNING_IN_LINUX) {
if (!tthread->proc->nohost) {
interrupt_syscall(tthread, sig);
}