-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program hangs on GC activity #45928
Comments
Running using Dates
const mem_size = 0x1_000_000
counter = let
counter = 0
start_t = now()
while true
dt = Dates.second(now()) - Dates.second(start_t)
dt > 15 && break
if counter % 1000 == 0
println("dt: $dt, counter: $counter")
end
counter += 1
arr = Vector{Int32}(undef, mem_size)
arr[rand(1:mem_size)] = rand(Int32, 1)[begin]
# sleep(1)
end
counter
end
@show counter, mem_size it shows:
So it is clear that the script is just having a bug in how it calculates the elapsed time (not considering the wrapping of |
Actually, that works, but 45 seconds per minute only.... Thanks, fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Program from #45369 sometimes hangs (likely in any version), at least on Linux.
See: https://discourse.julialang.org/t/hang-on-1-6-6-1-7-0-julia-1-8-0-beta3-and-1-9/83752
The text was updated successfully, but these errors were encountered: