File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,16 @@ struct StableFunctionMap {
127127 // / \returns true if there is no stable function entry.
128128 bool empty () const { return size () == 0 ; }
129129
130+ // / \returns true if there is an entry for the given function hash.
131+ // / This does not trigger lazy loading.
130132 bool contains (HashFuncsMapType::key_type FunctionHash) const {
131133 return HashToFuncs.count (FunctionHash) > 0 ;
132134 }
133135
136+ // / \returns the stable function entries for the given function hash. If the
137+ // / map is lazily loaded, it will deserialize the entries if it is not already
138+ // / done, other requests to the same hash at the same time will be blocked
139+ // / until the entries are deserialized.
134140 const StableFunctionEntries &
135141 at (HashFuncsMapType::key_type FunctionHash) const ;
136142
You can’t perform that action at this time.
0 commit comments