Skip to content

Commit

Permalink
Revert removal of SuppressGCTransition from SystemNative_GetTimestamp…
Browse files Browse the repository at this point in the history
…() (dotnet#27473)

* Revert removal of SuppressGCTransition from SystemNative_GetTimestamp()

* Insert GC_POLL before statement with unmanaged call.

* JIT test for insertion of GCPoll

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
  • Loading branch information
AaronRobinsonMSFT authored and stephentoub committed Oct 30, 2019
1 parent 6e1d3ff commit 8ee61dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static partial class Sys
internal static extern ulong GetTimestampResolution();

[DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetTimestamp", ExactSpelling = true)]
// [SuppressGCTransition] // https://github.com/dotnet/coreclr/issues/27465
[SuppressGCTransition]
internal static extern ulong GetTimestamp();
}
}

0 comments on commit 8ee61dd

Please sign in to comment.