How do I know an array of structures was allocated in the Large Object Heap (LOH) in .NET?
Posted
by AMissico
on Stack Overflow
See other posts from Stack Overflow
or by AMissico
Published on 2010-05-06T00:26:31Z
Indexed on
2010/05/06
0:38 UTC
Read the original article
Hit count: 342
After some experimenation using CLR Profiler, I found that:
Node[,] n = new Node[100,23]; //'84,028 bytes, is not placed in LOH
Node[,] n = new Node[100,24]; //'86,428 bytes, is
public struct Node {
public int Value;
public Point Point;
public Color Color;
public bool Handled;
public Object Tag;
}
During run-time, how do I know an array of structures (or any array) was allocated in the Large Object Heap (LOH)?
© Stack Overflow or respective owner