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 1c3326f commit cb75d49Copy full SHA for cb75d49
test/misc.jl
@@ -136,7 +136,10 @@ for l in (Threads.SpinLock(), ReentrantLock())
136
@test get_finalizers_inhibited() == 1
137
GC.enable_finalizers(true)
138
@test get_finalizers_inhibited() == 0
139
- @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
+ if ccall(:jl_is_debugbuild, Cint, ()) != 0
140
+ # Note this warning only exists in debug builds
141
+ @test_warn "WARNING: GC finalizers already enabled on this thread." GC.enable_finalizers(true)
142
+ end
143
144
@test lock(l) === nothing
145
@test try unlock(l) finally end === nothing
0 commit comments