Skip to content
Merged
Show file tree
Hide file tree
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
Change the #ifdef to ENABLE_CHECKED_BUILD which is enabled in all deb…
…ug builds
  • Loading branch information
filipnavara authored and github-actions committed Sep 17, 2021
commit 32e911e0926aef848d1fa5b797e8d21a58d89eae
2 changes: 1 addition & 1 deletion src/mono/mono/utils/mono-threads-coop.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ coop_tls_pop (gpointer received_cookie)
static void
check_info (MonoThreadInfo *info, const gchar *action, const gchar *state, const char *func)
{
#ifdef ENABLE_CHECKED_BUILD_GC
#ifdef ENABLE_CHECKED_BUILD
g_assertf (info, "%s Cannot %s GC %s region if the thread is not attached", func, action, state);
g_assertf (mono_thread_info_is_current (info), "%s [%p] Cannot %s GC %s region on a different thread", func, mono_thread_info_get_tid (info), action, state);
g_assertf (mono_thread_info_is_live (info), "%s [%p] Cannot %s GC %s region if the thread is not live", func, mono_thread_info_get_tid (info), action, state);
Expand Down
2 changes: 1 addition & 1 deletion src/mono/mono/utils/mono-threads-state-machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ unwrap_thread_state (MonoThreadInfo* info,
static void
check_thread_state (MonoThreadInfo* info)
{
#ifdef ENABLE_CHECKED_BUILD_THREAD
#ifdef ENABLE_CHECKED_BUILD
int raw_state, cur_state, suspend_count;
gboolean no_safepoints;
UNWRAP_THREAD_STATE (raw_state, cur_state, suspend_count, no_safepoints, info);
Expand Down