Memory Scrambler

Is there a function that scrambles all the memory positions? I see the function performGC that may move some data but is there a function for testing that ensures that all references are modified?

The GC may or may not move heap objects, depending on what they are and which GC algorithm is in use. It certainly doesn’t guarantee to move objects. In particular there are some “pinned” objects (e.g. ByteStrings) that cannot be safely moved, because they may be referenced by pointers that are not managed by the Haskell runtime.

What is the actual problem you are trying to solve?