Added comment

This commit is contained in:
Maksim Kita 2021-06-30 01:46:57 +03:00
parent b2177ab723
commit 5b3fc9b49e

View File

@ -457,6 +457,9 @@ struct ContextSharedPart
{
auto lock = std::lock_guard(mutex);
/** Compiled expressions stored in cache need to be destroyed before destruction of static objects.
* Because CHJIT instance can be static object.
*/
#if USE_EMBEDDED_COMPILER
if (auto * cache = CompiledExpressionCacheFactory::instance().tryGetCache())
cache->reset();