Class CodeCacheAccessor¶
-
template<typename
CompilationContext
>
classCodeCacheAccessor
¶ Public Functions
-
CodeCacheAccessor
(size_t cache_size, std::string name = "")¶
-
CodeCacheVal<CompilationContext>
get_value
(const CodeCacheKey &key)¶
-
void
put
(const CodeCacheKey &key, CodeCacheVal<CompilationContext> &value)¶
-
CodeCacheVal<CompilationContext> *
get_or_wait
(const CodeCacheKey &key)¶
-
void
put
(const CodeCacheKey &key, CodeCacheVal<CompilationContext> &&value)¶
-
void
clear
()¶
-
void
evictFractionEntries
(const float fraction)¶
-
bool
compiling
(const CodeCacheKey &key) const¶
Private Members
-
CodeCache<CompilationContext>
code_cache_
¶
-
int64_t
get_count_
¶
-
int64_t
found_count_
¶
-
int64_t
put_count_
¶
-
int64_t
ignore_count_
¶
-
int64_t
overwrite_count_
¶
-
int64_t
evict_count_
¶
-
const std::string
name_
¶
-
std::mutex
code_cache_mutex_
¶
-
std::condition_variable
compilation_cv_
¶
-
const CodeCacheKey *
compiling_key_
¶
Friends
-
std::ostream &
operator<<
(std::ostream &os, CodeCacheAccessor &c)¶
-