Closed SChernykh closed 2 years ago
cache->jit = new randomx::JitCompiler();
cache->memory = (uint8_t*)randomx::LargePageAllocator::allocMemory(randomx::CacheSize);
if (cache && cache->memory == nullptr) randomx_release_cache(cache);
if (cache->memory != nullptr)
cache->jit = new randomx::JitCompiler();
- succeedscache->memory = (uint8_t*)randomx::LargePageAllocator::allocMemory(randomx::CacheSize);
- failsif (cache && cache->memory == nullptr) randomx_release_cache(cache);
is executedif (cache->memory != nullptr)
and does nothing