You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buffer pool memory-pressure check allocates on return #205
Allocation tests are flaky on CI: NestedColumnEnumerationDoesNotAllocateAfterWarmup sometimes sees 288 bytes after warmup.
Once DefaultParquetBufferPool retains 64 MB, its memory-pressure check calls GC.GetGCMemoryInfo() on the thread returning a buffer, at most once per second. That call allocates 288 bytes. The tests share DefaultParquetBufferPool.Shared, which can retain enough memory to trigger the check.
We should run the check from a gen-2 GC callback like ArrayPool.Shared does, instead of on the returning thread, while keeping trimming under memory pressure. We should also add a test using the internal constructor’s pressure predicate to check that returning a buffer does not allocate when the check is due.
changed the title [-]DefaultParquetBufferPool allocates 288 bytes on buffer return when checking memory pressure[/-][+]Buffer pool memory-pressure check allocates on return[/+]on Nov 7, 2026
Activity
[-]DefaultParquetBufferPool allocates 288 bytes on buffer return when checking memory pressure[/-][+]Buffer pool memory-pressure check allocates on return[/+]