diff options
author | Mario Hoepfner <mario.hopfner@unity3d.com> | 2021-07-22 10:08:55 +0300 |
---|---|---|
committer | Mario Hoepfner <mario.hopfner@unity3d.com> | 2021-07-22 10:08:55 +0300 |
commit | 2e82b58b12ad2cf9d59a770809b1af3594e53781 (patch) | |
tree | 7e54e373edaecaa69e3414547d8febd49b28db83 | |
parent | ef9684c6e5da7f7db44bdf4558c83fb852759545 (diff) | |
parent | 0eb53e4b3d45d17e262736945b3d2bf63b36ad6f (diff) |
Merge branch 'unity-master' into platform/hmi/qnx-evluation
-rw-r--r-- | darwin_stop_world.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index 525f3158..a132cec2 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -196,10 +196,12 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p, /* else */ { mach_msg_type_number_t thread_state_count = GC_MACH_THREAD_STATE_COUNT; - /* Get the thread state (registers, etc) */ - kern_result = thread_get_state(thread, GC_MACH_THREAD_STATE, + do { + /* Get the thread state (registers, etc) */ + kern_result = thread_get_state(thread, GC_MACH_THREAD_STATE, (natural_t *)&state, &thread_state_count); + } while (kern_result == KERN_ABORTED); } # ifdef DEBUG_THREADS GC_log_printf("thread_get_state returns value = %d\n", kern_result); |