projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8479eab
)
[browser] enable mono_gc_is_critical_method for MT build (#88735)
author
Pavel Savara
<pavel.savara@gmail.com>
Wed, 26 Jul 2023 17:55:30 +0000
(19:55 +0200)
committer
GitHub
<noreply@github.com>
Wed, 26 Jul 2023 17:55:30 +0000
(19:55 +0200)
src/mono/mono/metadata/sgen-mono.c
patch
|
blob
|
history
diff --git
a/src/mono/mono/metadata/sgen-mono.c
b/src/mono/mono/metadata/sgen-mono.c
index
cb1e1ba
..
4d008a7
100644
(file)
--- a/
src/mono/mono/metadata/sgen-mono.c
+++ b/
src/mono/mono/metadata/sgen-mono.c
@@
-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