Skip to content

Commit 1c9f91c

Browse files
Remove the Align8 workaround (#2656)
1 parent 75fbc09 commit 1c9f91c

File tree

1 file changed

+0
-6
lines changed
  • src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Runtime

1 file changed

+0
-6
lines changed

src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Runtime/ThreadStatics.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,7 @@ private static unsafe object AllocateThreadStaticStorageForType(TypeManagerHandl
137137
gcDesc = Internal.Runtime.Augments.RuntimeAugments.TypeLoaderCallbacks.GetThreadStaticGCDescForDynamicType(typeManager, typeTlsIndex);
138138
}
139139

140-
#if TARGET_WASM
141-
// TODO-LLVM: Remove when there is an upstream fix. See https://github.com/dotnet/runtimelab/issues/2606 and https://github.com/dotnet/runtime/issues/103234
142-
// This is a fix for aligning to 8, thread static fields that should be aligned 8, we just conservatively align everything to 8.
143-
return InternalCalls.RhpNewFastAlign8((MethodTable*)gcDesc);
144-
#else
145140
return RuntimeImports.RhNewObject((MethodTable*)gcDesc);
146-
#endif
147141
}
148142
}
149143
}

0 commit comments

Comments
 (0)