core/vm: use clear from go v1.21 #29307 (#1246)

This commit is contained in:
Daniel Liu 2025-08-04 11:54:49 +08:00 committed by GitHub
parent f9025ecc91
commit 3620d9930d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,9 +93,7 @@ func BenchmarkJumpdestOpAnalysis(bench *testing.B) {
bits := make(bitvec, len(code)/8+1+4)
b.ResetTimer()
for i := 0; i < b.N; i++ {
for j := range bits {
bits[j] = 0
}
clear(bits)
codeBitmapInternal(code, bits)
}
}