Skip to content

Commit

Permalink
Update src/libraries/Common/src/Interop/Unix/System.Native/Interop.Me…
Browse files Browse the repository at this point in the history
…mfdCreate.cs

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
  • Loading branch information
am11 and jkotas committed Jul 20, 2024
1 parent afab6b8 commit 0d86fd1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ internal static partial class Sys
[LibraryImport(Libraries.SystemNative, EntryPoint = "SystemNative_MemfdSupported", SetLastError = true)]
private static partial int MemfdSupportedImpl();

private static volatile int s_memfdSupported = -1;
private static volatile sbyte s_memfdSupported;

internal static bool MemfdSupported
{
get
{
int result = Interlocked.CompareExchange(ref s_memfdSupported, -1, -1);
if (result == -1)
int memfdSupported = s_memfdSupported;
if (memfdSupported == 0)
{
result = MemfdSupportedImpl();
Interlocked.Exchange(ref s_memfdSupported, result);
Interlocked.CompareExchange(ref s_memfdSupported, MemfdSupportedImpl() ? 1 : -1, 0);

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build coreclr Common Pri0 Test Build AnyOS AnyCPU checked)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-riscv64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_Minijit_RuntimeTests minijit)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_Minijit_RuntimeTests minijit)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_Interpreter_RuntimeTests monointerpreter)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release NativeAOT)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAot_RuntimeTests llvmaot)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release SingleThreaded_BuildOnly)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'

Check failure on line 27 in src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build browser-wasm linux release Runtime_Release)

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs#L27

src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemfdCreate.cs(27,71): error CS0029: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot implicitly convert type 'int' to 'bool'
memfdSupported = s_memfdSupported;
}
return result == 1;
return memfdSupported > 0;
}
}
}
Expand Down

0 comments on commit 0d86fd1

Please sign in to comment.