Skip to content

Commit

Permalink
fix effects
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Oct 9, 2024
1 parent 1b5ec48 commit 3b25f0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ function _growbeg!(a::Vector, delta::Integer)
setfield!(a, :ref, @inbounds memoryref(ref, 1 - delta))
else
@noinline (function()
@_terminates_locally_meta
memlen = length(mem)
if offset + len - 1 > memlen || offset < 1
throw(ConcurrencyViolationError("Vector has invalid state. Don't modify internal fields incorrectly, or resize without correct locks"))
Expand Down

0 comments on commit 3b25f0e

Please sign in to comment.