Methods, apparatus and computer readable medium for handling error
correction in a memory are disclosed. In some embodiments, first data is
written to the memory, and a value(s) of an operational parameter(s) that
is a consequence of the writing of the first data is determined. Second
data is read from the memory, and the value(s) of the operational
parameter(s) may be used when correcting errors in the second data. In
some embodiments, the first data is the same as the second data. The
presently-disclosed teachings are applicable to any kind of memory
including (i) non-volatile memories such as flash memory, magnetic memory
and optical storage and (ii) volatile memory such as SRAM or DRAM.