We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enable_finalizers
1 parent cf0c32f commit 3e44b95Copy full SHA for 3e44b95
test/misc.jl
@@ -149,7 +149,10 @@ for l in (Threads.SpinLock(), ReentrantLock())
149
@test get_finalizers_inhibited() == 1
150
GC.enable_finalizers(true)
151
@test get_finalizers_inhibited() == 0
152
- @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
+ if ccall(:jl_is_debugbuild, Cint, ()) != 0
153
+ # Note this warning only exists in debug builds
154
+ @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
155
+ end
156
157
@test lock(l) === nothing
158
@test try unlock(l) finally end === nothing
0 commit comments