KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've read that pinning objects in the managed heap affects the GC performance in .NET, because the GC can't compact memory if there are pinned objects "in the way". But since the large object heap isn't compacted anyway, this shouldn't apply to objects in the LOH. Are there any other hidden costs of pinning an object that's in the LOH? Or can I safely pin objects in the LOH without degrading GC performance?
Tags (comma-separated)
Save Edits
Cancel