mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
builtin: use malloc_noscan more (for map metas and in []byte.hex())
This commit is contained in:
parent
1993bf2a12
commit
8dc4b1d9a3
4 changed files with 4 additions and 4 deletions
|
@ -662,7 +662,7 @@ pub fn (m &map) clone() map {
|
|||
cached_hashbits: m.cached_hashbits
|
||||
shift: m.shift
|
||||
key_values: unsafe { m.key_values.clone() }
|
||||
metas: unsafe { &u32(malloc(metasize)) }
|
||||
metas: unsafe { &u32(malloc_noscan(metasize)) }
|
||||
extra_metas: m.extra_metas
|
||||
len: m.len
|
||||
has_string_keys: m.has_string_keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue