Andrey:

I think GC scans stack for pointers.

Right. And I think you can't stop the GC from scanning the stack.


The garbage collector looks for roots in:
...

What I meant to say is that if you put the fixed sized array on the heap then maybe you can mark it as noscan.

Maybe if you tell us more generally what you are trying to do, we can answer something useful :-)

Bye,
bearophile

Reply via email to