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.
2 parents 398e2f4 + 8092fbb commit e6b658bCopy full SHA for e6b658b
1 file changed
src/RuntimeGeneratedFunctions.jl
@@ -113,7 +113,7 @@ function drop_expr(
113
# When dropping the reference to the body from an RGF, we need to upgrade
114
# from a weak to a strong reference in the cache to prevent the body being
115
# GC'd.
116
- lock(_cache_lock) do
+ @lock _cache_lock begin
117
cache = getfield(parentmodule(cache_tag), _cachename)
118
body = cache[id]
119
if body isa WeakRef
0 commit comments