Closed SergeiPavlov closed 6 months ago
OpenSystemLogicOnlyRegion()
EnableSystemOperationRegistration()
DisableSystemOperationRegistration()
Disposable<>
RegisterRoot()
EmptyDisposable
if (!hashSet.Contains(x)) hashSet.Add(x);
hashSet.Add(x)
PrefetchManagerBasicTest
OpenSystemLogicOnlyRegion()
,EnableSystemOperationRegistration()
,DisableSystemOperationRegistration()
alloc-less (there were 2 allocations: forDisposable<>
& closure)RegisterRoot()
EmptyDisposable
where possibleif (!hashSet.Contains(x)) hashSet.Add(x);
pattern intohashSet.Add(x)
to avoid double searchPrefetchManagerBasicTest
: prohibit JIT to inline the function