mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Merge 9c804eddc3 into 406a852ec8
This commit is contained in:
commit
48e7294d47
1 changed files with 1 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ func newJournal() *journal {
|
|||
// It is semantically similar to calling 'newJournal', but the underlying slices
|
||||
// can be reused.
|
||||
func (j *journal) reset() {
|
||||
clear(j.entries)
|
||||
j.entries = j.entries[:0]
|
||||
j.validRevisions = j.validRevisions[:0]
|
||||
clear(j.dirties)
|
||||
|
|
|
|||
Loading…
Reference in a new issue