Merge pull request #2778 from xmcclure/checked-build-updates-2
authorAndi McClure <andi.mcclure@xamarin.com>
Mon, 21 Mar 2016 14:27:40 +0000 (10:27 -0400)
committerAndi McClure <andi.mcclure@xamarin.com>
Mon, 21 Mar 2016 14:27:40 +0000 (10:27 -0400)
Fix patch merge error in PR#2753, was breaking checked build

mono/utils/mono-threads-coop.c

index 2a31e93e6f141762b0000b4fcaae86fbce9b6f9f..20740b3dcd1d330bc943bc5ca3320b9cacd39f77 100644 (file)
@@ -285,9 +285,9 @@ mono_threads_reset_blocking_end (void *cookie, void* stackdata)
                int level = coop_tls_pop (&desired_cookie);
                //g_warning("Leaving reset nest; back to level %d; desired cookie %d; received cookie %d\n", level, desired_cookie, received_cookie);
                if (level < 0)
-                       g_error_with_history ("Expected cookie %d but found no stack at all\n", desired_cookie);
+                       mono_fatal_with_history ("Expected cookie %d but found no stack at all\n", desired_cookie);
                if (desired_cookie != received_cookie)
-                       g_error_with_history ("Expected cookie %d but received %d\n", desired_cookie, received_cookie);
+                       mono_fatal_with_history ("Expected cookie %d but received %d\n", desired_cookie, received_cookie);
        } else // Notice this matches the line after the endif
 #endif
        {