Closed chokobole closed 5 months ago
The recent changes involve enhancements in memory management for logging functionalities within a virtual machine. Specifically, these modifications ensure that memory and return data are initialized and copied efficiently before being logged. This approach minimizes potential errors and optimizes performance by handling data more securely and effectively during the logging process.
Files | Change Summary |
---|---|
core/vm/logger.go ,core/vm/logger_json.go |
In both files, memory and return data are now initialized and managed through new slices, ensuring data integrity and efficiency in the logging process. |
core/vm/logger.go (2)
`275-275`: Efficient memory handling by initializing and copying only the necessary data. --- `325-325`: Proper initialization and copying of return data ensure its integrity in the logs.
Description
This PR has fixed the copy bug of memory and return data when emitting execution trace.
Summary by CodeRabbit