Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap check_thread_state in ENABLE_CHECKED_BUILD_THREAD
  • Loading branch information
filipnavara authored and github-actions committed Sep 17, 2021
commit 46e71b9fc39ab8ac3ae11683e118dd1b57ce8319
2 changes: 2 additions & 0 deletions src/mono/mono/utils/mono-threads-state-machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ unwrap_thread_state (MonoThreadInfo* info,
static void
check_thread_state (MonoThreadInfo* info)
{
#ifdef ENABLE_CHECKED_BUILD_THREAD
int raw_state, cur_state, suspend_count;
gboolean no_safepoints;
UNWRAP_THREAD_STATE (raw_state, cur_state, suspend_count, no_safepoints, info);
Expand Down Expand Up @@ -133,6 +134,7 @@ check_thread_state (MonoThreadInfo* info)
default:
g_error ("Invalid state %d", cur_state);
}
#endif
}

static void
Expand Down