Skip to content

Commit 9c01ab6

Browse files
committed
use resize fallback not just for SharedVector
1 parent 0d6a42e commit 9c01ab6

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

Manifest.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.10.0"
4+
manifest_format = "2.0"
5+
project_hash = "24447bb3b619ca6c2cafa7841cba165b28ce77f3"
6+
7+
[[deps.Artifacts]]
8+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
9+
10+
[[deps.CompilerSupportLibraries_jll]]
11+
deps = ["Artifacts", "Libdl"]
12+
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
13+
version = "1.0.5+1"
14+
15+
[[deps.Libdl]]
16+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
17+
18+
[[deps.LinearAlgebra]]
19+
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
20+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
21+
22+
[[deps.OpenBLAS_jll]]
23+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
24+
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
25+
version = "0.3.23+2"
26+
27+
[[deps.libblastrampoline_jll]]
28+
deps = ["Artifacts", "Libdl"]
29+
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
30+
version = "5.8.0+1"

src/composition.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,7 @@ function _resize(dest::AbstractVector, sz::Tuple{<:Integer})
239239
try
240240
resize!(dest, sz[1])
241241
catch err
242-
if err == ErrorException("cannot resize array with shared data")
243-
dest = similar(dest, sz)
244-
else
245-
rethrow(err)
246-
end
242+
dest = similar(dest, sz)
247243
end
248244
dest
249245
end

0 commit comments

Comments
 (0)