testing if data is allocated on the stack or heap
drug via Digitalmars-d-learn Tue, 17 Oct 2017 08:36:03 -0700
My code fails and I guess the reason is I have a slice to data in the
stack and it becomes garbage in some moment. So I need a way to check
where data is placed. Is it right that it can be done in linux using
`sbrk` so that if the addr of data is less than `sbrk(0)` returning then
data is on the stack and on the heap in other case?
- testing if data is allocated ... drug via Digitalmars-d-learn
- Re: testing if data is a... Biotronic via Digitalmars-d-learn
- Re: testing if data ... drug via Digitalmars-d-learn
- Re: testing if data ... user1234 via Digitalmars-d-learn
- Re: testing if data ... flamencofantasy via Digitalmars-d-learn
- Re: testing if d... Steven Schveighoffer via Digitalmars-d-learn
- Re: testing ... flamencofantasy via Digitalmars-d-learn
- Re: testing ... Biotronic via Digitalmars-d-learn
- Re: tes... Biotronic via Digitalmars-d-learn
- Re: testing if data is a... Jonathan M Davis via Digitalmars-d-learn