[browser] enable mono_gc_is_critical_method for MT build (#88735)
authorPavel Savara <pavel.savara@gmail.com>
Wed, 26 Jul 2023 17:55:30 +0000 (19:55 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 17:55:30 +0000 (19:55 +0200)
src/mono/mono/metadata/sgen-mono.c

index cb1e1ba..4d008a7 100644 (file)
@@ -232,7 +232,7 @@ sgen_has_critical_method (void)
 gboolean
 mono_gc_is_critical_method (MonoMethod *method)
 {
-#if defined(HOST_WASM) || defined(HOST_WASI)
+#if defined (DISABLE_THREADS) && (defined(HOST_WASM) || defined(HOST_WASI))
        //methods can't be critical under wasm due to the single thread'ness of it
        return FALSE;
 #else