Closed
Description
Currently some of the Consume
methods stash the reference passed to them in a local field, keeping the object alive as long as the consume object itself remains live.
BenchmarkDotNet/src/BenchmarkDotNet/Engines/Consumer.cs
Lines 98 to 109 in b78ec96
If that object roots a large object graph or large array allocation it can alter GC behavior and impact benchmark timing.
Consider either immediately over-writing the local field with null or nulling out this field at the end of measurement intervals.
Metadata
Metadata
Assignees
Labels
No labels