diff --git a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/LazyTests.cs b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/LazyTests.cs index 76c3639e72989..6068d6609148f 100644 --- a/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/LazyTests.cs +++ b/src/libraries/System.Runtime/tests/System.Runtime.Tests/System/LazyTests.cs @@ -385,7 +385,6 @@ public static void Value_ThrownException_DoesntCreateValue_PublicationOnly() Assert.False(lazy.IsValueCreated); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_SimpleRefTypes() { @@ -417,7 +416,6 @@ public static void EnsureInitialized_SimpleRefTypes() Assert.Equal(strTemplate, d); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_SimpleRefTypes_Invalid() { @@ -430,7 +428,6 @@ public static void EnsureInitialized_SimpleRefTypes_Invalid() Assert.Throws(() => LazyInitializer.EnsureInitialized(ref ndc)); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_ComplexRefTypes() { @@ -487,7 +484,6 @@ public static void EnsureInitialized_ComplexRefTypes() Assert.Null(LazyInitializer.EnsureInitialized(ref e, ref einit, ref elock, () => { initCount++; return null; })); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_ComplexRefTypes_Invalid() { @@ -498,7 +494,6 @@ public static void EnsureInitialized_ComplexRefTypes_Invalid() Assert.Throws(() => LazyInitializer.EnsureInitialized(ref ndc, ref ndcInit, ref ndcLock)); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void LazyInitializerComplexValueTypes() { @@ -553,7 +548,6 @@ public static void Ctor_Value_ValueType() VerifyLazy(lazyObject, 123, hasValue: true, isValueCreated: true); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_FuncInitializationWithoutTrackingBool_Uninitialized() { @@ -565,7 +559,6 @@ public static void EnsureInitialized_FuncInitializationWithoutTrackingBool_Unini Assert.NotNull(syncLock); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitialized_FuncInitializationWithoutTrackingBool_Initialized() { @@ -577,7 +570,6 @@ public static void EnsureInitialized_FuncInitializationWithoutTrackingBool_Initi Assert.Null(syncLock); } - [ActiveIssue("https://github.com/dotnet/runtime/issues/105251", TestPlatforms.tvOS)] [Fact] public static void EnsureInitializer_FuncInitializationWithoutTrackingBool_Null() { diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index 2edfceeedac39..4918e9abeb4ab 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -2978,10 +2978,10 @@ build_named_alloca (EmitContext *ctx, MonoType *t, char const *name) g_assert (!mini_is_gsharedvt_variable_type (t)); - if (mini_class_is_simd (ctx->cfg, k)) - align = mono_class_value_size (k, NULL); + if (mini_class_is_simd (ctx->cfg, k) && !m_type_is_byref (t)) + align = mono_class_value_size (k, NULL); // FIXME mono_type_size should report correct alignment else - align = mono_class_min_align (k); + mono_type_size (t, &align); /* Sometimes align is not a power of 2 */ while (mono_is_power_of_two (align) == -1)