Remove or document Unsafe.AsPointer uses in core libraries #99146
Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)
failed
Mar 4, 2024 in 6m 48s
Build wasi-wasm linux Release LibraryTests_Smoke failed
Annotations
azure-pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.Threading.cs#L560
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.Threading.cs(560,63): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'o' in 'nint EventSource.ObjectIDForEvents(object o)'.
azure-pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs#L1127
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1127,28): error CS0214: (NETCORE_ENGINEERING_TELEMETRY=Build) Pointers and fixed size buffers may only be used in an unsafe context
azure-pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs#L1127
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1127,22): error CS0214: (NETCORE_ENGINEERING_TELEMETRY=Build) Pointers and fixed size buffers may only be used in an unsafe context
azure-pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs#L1127
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1127,21): error CS0214: (NETCORE_ENGINEERING_TELEMETRY=Build) Pointers and fixed size buffers may only be used in an unsafe context
Loading