Skip to content

Commit 50d9d85

Browse files
committed
Convert GlobalMCCache docstring to just a comment
1 parent b52bdc0 commit 50d9d85

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/copyable_task.jl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,12 @@ struct CacheKey
113113
key::Any
114114
end
115115

116-
"""
117-
GlobalMCCache
118-
119-
A cache for holding MistyClosures, keyed by CacheKey.
120-
121-
The reason to have a type for this, rather than just a global const
122-
Dict{CacheKey,MistyClosure}, is thread-safety. The global cache is written to when new
123-
TapedTasks are compiled, and if multiple threads are doing this concurrently races might
124-
occur. This type uses a ReentrantLock to ensure that any `setindex!` operations are atomic,
125-
solving the problem.
126-
"""
116+
# A cache for holding MistyClosures, keyed by CacheKey.
117+
# The reason to have a type for this, rather than just a global const
118+
# Dict{CacheKey,MistyClosure}, is thread-safety. The global cache is written to when new
119+
# TapedTasks are compiled, and if multiple threads are doing this concurrently races might
120+
# occur. This type uses a ReentrantLock to ensure that any `setindex!` operations are
121+
# atomic, solving the problem.
127122
struct GlobalMCCache
128123
cache::Dict{CacheKey,MistyClosure}
129124
lock::ReentrantLock

0 commit comments

Comments
 (0)