Skip to content

Use function pointers instead of delegates to clear object pool in C#9. #883

Use function pointers instead of delegates to clear object pool in C#9.

Use function pointers instead of delegates to clear object pool in C#9. #883

GitHub Actions / dotnet-test-results-net6.0-Release_NoProgress-Pool_Enabled-userMode succeeded Sep 9, 2023 in 1s

dotnet-test-results-net6.0-Release_NoProgress-Pool_Enabled-userMode ✅

Tests passed successfully

✅ TestResults/dotnet-test-results-net6.0-Release_NoProgress-Pool_Enabled-userMode.trx

13017 tests were completed in 1719s with 13017 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromiseTests.APIs.AllTests 22✅ 2s
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_1_WhenPendingAPromise 2✅ 161ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_2_WhenFulfilledAPromise 3✅ 510ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_3_WhenRejectedAPromise 4✅ 474ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod 4✅ 422ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_3_IfOnRejectedIsAFunction 6✅ 355ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_6_ThenMayBeCalledMultipleTimesOnTheSamePromise 4✅ 227ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+IfOnFulfilledIsAFunction_2_2_2 5✅ 284ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+ThenMustReturnAPromise_2_2_7 20✅ 1s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure 4✅ 561ms
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure+_2_3_2_IfXIsAPromiseAdoptItsState 5✅ 572ms
ProtoPromiseTests.APIs.AsyncFunctionTests 22✅ 1s
ProtoPromiseTests.APIs.AsyncLazyTests 18✅ 1s
ProtoPromiseTests.APIs.AsyncLocalTests 4✅ 244ms
ProtoPromiseTests.APIs.AwaitTests 52✅ 3s
ProtoPromiseTests.APIs.CancelationTests+Registration 40✅ 7s
ProtoPromiseTests.APIs.CancelationTests+Source 36✅ 2s
ProtoPromiseTests.APIs.CancelationTests+Token 35✅ 2s
ProtoPromiseTests.APIs.CaptureTests 24✅ 1s
ProtoPromiseTests.APIs.ContinuewithTests 16✅ 961ms
ProtoPromiseTests.APIs.FinallyTests 12✅ 723ms
ProtoPromiseTests.APIs.FirstTests 50✅ 3s
ProtoPromiseTests.APIs.MergeTests 10✅ 604ms
ProtoPromiseTests.APIs.MiscellaneousTests 119✅ 44s
ProtoPromiseTests.APIs.NewAndRunTests 608✅ 36s
ProtoPromiseTests.APIs.ParallelForTests 25✅ 2s
ProtoPromiseTests.APIs.ProgressTests 24✅ 1s
ProtoPromiseTests.APIs.PromiseCancelationTests 19✅ 1s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken 28✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken+Reject 6✅ 389ms
ProtoPromiseTests.APIs.PromiseCancelationTests+CatchCancelationMayBeCalledMultipleTimesOnTheSamePromise 2✅ 130ms
ProtoPromiseTests.APIs.PromiseCancelationTests+IfOnCanceledIsAFunction 5✅ 304ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure 2✅ 119ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure+IfXIsAPromiseAdoptItsState 6✅ 369ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenCanceledAPromise 2✅ 119ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenFulfilledAPromise 2✅ 118ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenPendingAPromise 2✅ 126ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenRejectedAPromise 2✅ 117ms
ProtoPromiseTests.APIs.RaceTests 38✅ 2s
ProtoPromiseTests.APIs.SequenceTests 15✅ 905ms
ProtoPromiseTests.APIs.Threading.AsyncAutoResetEventTests 18✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncConditionVariableTests 21✅ 1s
ProtoPromiseTests.APIs.Threading.AsyncCountdownEventTests 20✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncLockTests 17✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncManualResetEventTests 19✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncMonitorTests 38✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncReaderWriterLockTests 186✅ 12s
ProtoPromiseTests.APIs.Threading.AsyncSemaphoreTests 21✅ 1s
ProtoPromiseTests.APIs.UncaughtRejectionTests 76✅ 5s
ProtoPromiseTests.APIs.WaitAsyncTests 8880✅ 562s
ProtoPromiseTests.Concurrency.AllConcurrencyTests 256✅ 25s
ProtoPromiseTests.Concurrency.ApiWithCancelationTokenConcurrencyTests 36✅ 21s
ProtoPromiseTests.Concurrency.AsyncLazyConcurrencyTests 3✅ 567ms
ProtoPromiseTests.Concurrency.AwaitConcurrencyTests 22✅ 2s
ProtoPromiseTests.Concurrency.CancelationConcurrencyTests 43✅ 4s
ProtoPromiseTests.Concurrency.DeferredConcurrencyTests 12✅ 862ms
ProtoPromiseTests.Concurrency.DeferredThreadTests 10✅ 695ms
ProtoPromiseTests.Concurrency.FirstConcurrencyTests 256✅ 23s
ProtoPromiseTests.Concurrency.MergeConcurrencyTests 416✅ 449s
ProtoPromiseTests.Concurrency.PromiseConcurrencyTests 50✅ 10s
ProtoPromiseTests.Concurrency.PromiseNonPreservedConcurrencyTests 156✅ 14s
ProtoPromiseTests.Concurrency.RaceConcurrencyTests 256✅ 30s
ProtoPromiseTests.Concurrency.Threading.AsyncAutoResetEventConcurrencyTests 8✅ 3s
ProtoPromiseTests.Concurrency.Threading.AsyncCountdownEventConcurrencyTests 16✅ 6s
ProtoPromiseTests.Concurrency.Threading.AsyncLockConcurrencyTests 12✅ 127s
ProtoPromiseTests.Concurrency.Threading.AsyncManualResetEventConcurrencyTests 8✅ 2s
ProtoPromiseTests.Concurrency.Threading.AsyncReaderWriterLockConcurrencyTests 654✅ 211s
ProtoPromiseTests.Concurrency.Threading.AsyncSemaphoreConcurrencyTests 12✅ 58s
ProtoPromiseTests.Concurrency.WaitAsyncConcurrencyTests 192✅ 14s