diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
index 7efa9b6a2a0126..56430968ad03d5 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
@@ -163,7 +163,8 @@ public Thread(ParameterizedThreadStart start, int maxStackSize)
#endif
#endif
- internal static void ThrowIfNoThreadStart() {
+ internal static void ThrowIfNoThreadStart()
+ {
if (!IsThreadStartSupported)
throw new PlatformNotSupportedException();
}
diff --git a/src/mono/mono/metadata/threads.c b/src/mono/mono/metadata/threads.c
index f40e96030d3088..418ee6100a95ed 100644
--- a/src/mono/mono/metadata/threads.c
+++ b/src/mono/mono/metadata/threads.c
@@ -684,8 +684,8 @@ mono_thread_internal_set_priority (MonoInternalThread *internal, MonoThreadPrior
return;
#else /* !HOST_WIN32 and not HOST_FUCHSIA */
pthread_t tid;
- int policy;
- struct sched_param param;
+ int policy = SCHED_OTHER;
+ struct sched_param param = {0,};
gint res;
tid = thread_get_tid (internal);
diff --git a/src/mono/wasm/wasm.proj b/src/mono/wasm/wasm.proj
index c89caa7139db7d..e439c173cc61fd 100644
--- a/src/mono/wasm/wasm.proj
+++ b/src/mono/wasm/wasm.proj
@@ -204,7 +204,7 @@
$(CMakeBuildRuntimeConfigureCmd) -DICU_LIB_DIR="$(ICULibDir.TrimEnd('\/'))"
$(CMakeBuildRuntimeConfigureCmd) -DMONO_ARTIFACTS_DIR="$(MonoArtifactsPath.TrimEnd('\/'))"
$(CMakeBuildRuntimeConfigureCmd) -DNATIVE_BIN_DIR="$(NativeBinDir.TrimEnd('\/'))"
- $(CMakeBuildRuntimeConfigureCmd) -DDISABLE_THREADS=1
+ $(CMakeBuildRuntimeConfigureCmd) -DDISABLE_THREADS=0
$(CMakeBuildRuntimeConfigureCmd) -DDISABLE_WASM_USER_THREADS=1
$(CMakeBuildRuntimeConfigureCmd) $(CMakeConfigurationEmsdkPath)