Suppose I have an array in which I store some sensitive data. Overwriting each element of the array ensures the data is wiped from its current location in physical memory.
However, could there be any stale copies of the data elsewhere in physical memory? Or is the virtual to physical memory mapping fixed for the lifetime of the array?
I'm particularly interested to know about the behaviour in C, Java and WebAssembly.