Collections.Pooled
Collections.Pooled copied to clipboard
Nested pooled collections crash the Visual Studio heap snapshot
Describe the bug When nesting pooled collections inside each other, the debugger crashes when taking a heap snapshot.
To Reproduce
Create a nested collection, for example PooledDictionary<int, PooledSet<int>> and attempt to take a heap snapshot in the Visual Studio debugger. This occurs in both the prerelease and 1.0 Nuget packages.
Expected behavior The debugger should not crash.
Is it also possible that nesting pooled collections is just not recommended usage? I'm not really sure how it works internally.