Skip to content

Commit 1157bcf

Browse files
committed
Fix copy for Parameters
1 parent ca2904d commit 1157bcf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/parameters.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ function Base.copy(p::Parameters)
138138
p.time_tolerance,
139139
p.memory_tolerance,
140140
p.experimental_enable_linux_perf,
141-
p.linux_perf_options, # Is this really a copy, the values contain Expr's which store Vector's.
141+
(
142+
events = copy(p.linux_perf_options.events),
143+
spaces = copy(p.linux_perf_options.spaces),
144+
threads = copy(p.linux_perf_options.threads)
145+
),
142146
)
143147
end
144148

0 commit comments

Comments
 (0)