The invention provides a
smart contract virtual machine object memory aggregation management method, which comprises the following steps: when a contract object is stored, judging whether a read-only object of the contract object exists in a specified
data structure or not, if not, storing the read-only object and initializing a reference frequency, and if yes, storing the read-only object; allocating a storage space on a linear memory for a variable object of the contract object and recording a
memory mapping relationship of the variable object; and if yes, only increasing the reference frequency of the read-only object, then allocating a storage space for the variable object on the linear memory, and recording the
memory mapping relationship of the variable object. According to the method, different storage
modes are adopted for different types of data and association is carried out, so that the storage and loading cost of repeated data is greatly reduced, and the memory use efficiency of the intelligent contract
virtual machine is greatly optimized. Furthermore, the contract execution speed can be improved and the
system security and expandability can be guaranteed through a state
label bit and a mixed
write barrier mechanism.