Re: Please Explain where will the struct be stored if it is declared inside the Class
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Mon, 6 Jun 2005 19:43:54 +0100
Willy Denoyette [MVP] <willy.denoyette@xxxxxxxxxx> wrote:
> > It doesn't get much more detailed than Jon's article:
> >
> > http://yoda.arachsys.com/csharp/memory.html
>
> Agreed, just one small remark though, The article states "Every static
> variable is stored on the heap", this is not completely correct if Jon here
> meant the GC heap.
> Static variables are not stored on the GC heap, but they live on a private,
> per application domain heap, more precisely, on the "High Frequency heap"
> within the loader heap. So, if you ever wonder where the PairOfInts static
> counter variable lives, well it's on the "High Frequency Heap".
Righto - I'll amend the article when I get some time.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- Please Explain where will the struct be stored if it is declared inside the Class
- From: thomson
- Re: Please Explain where will the struct be stored if it is declared inside the Class
- From: Bruce Wood
- Re: Please Explain where will the struct be stored if it is declared inside the Class
- From: thomson
- Re: Please Explain where will the struct be stored if it is declared inside the Class
- From: Daniel O'Connell [C# MVP]
- Re: Please Explain where will the struct be stored if it is declared inside the Class
- From: Willy Denoyette [MVP]
- Please Explain where will the struct be stored if it is declared inside the Class
- Prev by Date: Catch and report errors from external app called using new Process
- Next by Date: Re: GetChildRows
- Previous by thread: Re: Please Explain where will the struct be stored if it is declared inside the Class
- Next by thread: Re: Please Explain where will the struct be stored if it is declared inside the Class
- Index(es):
Relevant Pages
|