3 ms·
> In my experience 0 is by far the most common value in unitialized memory, In BSS, yes (IMO, BSS cannot be really considered as uninitialized, but you didn't
by minipci1321 10y ago
> In my experience 0 is by far the most common value in unitialized memory,
In BSS, yes (IMO, BSS cannot be really considered as uninitialized, but you didn't give precisions).
On the stack... I don't remember offhand whether the thread's stack is initially mapped in using zeropage which is then replaced by a real page on a first write. Even so, the first write would be saving the return address, so occurring pretty quickly. In any case, code moving up and down along the stack (calling into a chain of embedded routine inside a loop) will mostly spot its own garbage, hardly entropic.