Skip to content

Commit 5599410

Browse files
committed
reuse: Disable linked list-based structures
1 parent c0b3e46 commit 5599410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/reuse.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,14 @@ end
466466
macro reusable_vector(name, T, null, N)
467467
vec_name = Symbol("__$(name)_TLV_ReusableLinkedList")
468468
if !hasproperty(__module__, vec_name)
469-
__module__.eval(:(#=const=# $vec_name = $TaskLocalValue{$ReusableLinkedList{$T}}(()->$ReusableLinkedList{$T}($null, $N))))
469+
__module__.eval(:(#=const=# $vec_name = $TaskLocalValue{$Vector{$T}}(()->$Vector{$T}())))
470470
end
471471
return :($(esc(vec_name))[])
472472
end
473473
macro reusable_dict(name, K, V, null_key, null_value, N)
474474
dict_name = Symbol("__$(name)_TLV_ReusableDict")
475475
if !hasproperty(__module__, dict_name)
476-
__module__.eval(:(#=const=# $dict_name = $TaskLocalValue{$ReusableDict{$K,$V}}(()->$ReusableDict{$K,$V}($null_key, $null_value, $N))))
476+
__module__.eval(:(#=const=# $dict_name = $TaskLocalValue{$Dict{$K,$V}}(()->$Dict{$K,$V}())))
477477
end
478478
return :($(esc(dict_name))[])
479479
end

0 commit comments

Comments
 (0)