主权项 |
1. A method for in-memory modification of a set of data, comprising the following steps in an information processing device:
defining one or more memory blocks containing a set of data to be modified, the memory space containing the set of data to be modified being referred to as the original memory space, such that the memory block including the set of data to be modified is referred to as original memory blocks; copying said original memory blocks into a non-volatile backup memory, the blocks thus modified being referred to as backup blocks; modifying the set of data in the original memory blocks; storing in the non-volatile backup memory a transaction state among the following states
an “off-transaction” state when no transaction is in progress,an “in progress modifications” state stored when a transaction in progress implements a data modification step in the original memory blocks, andan “in progress copying” state stored when a transaction implements a copying of the data blocks of the backup memory space to the original memory space in order to cancel the interrupted transaction; and restoring the original memory space to the state in which the original memory space was in before receiving an interrupt as a function of the stored transaction state and the operating mode of the transaction mechanism, wherein
when the stored transaction state is “off-transaction” state, the information processing device does nothing,when the stored transaction state is “in progress modification” state, the information processing device performs a copying of the data blocks of the backup memory space to the original memory space, andwhen the stored transaction state is “in progress copying” state, the information processing device performs a copying of the data blocks of the backup memory space to the original memory space. |