We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 429db76 commit 2a890fcCopy full SHA for 2a890fc
libraries/chain/include/eosio/chain/wasm_interface_private.hpp
@@ -232,6 +232,10 @@ struct eosvmoc_tier {
232
// Anything last used before or on the LIB can be evicted.
233
const auto first_it = wasm_instantiation_cache.get<by_last_block_num>().begin();
234
const auto last_it = wasm_instantiation_cache.get<by_last_block_num>().upper_bound(lib);
235
+#ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED
236
+ if(eosvmoc) for(auto it = first_it; it != last_it; it++)
237
+ eosvmoc->cc.free_code(it->code_hash, it->vm_version);
238
+#endif
239
wasm_instantiation_cache.get<by_last_block_num>().erase(first_it, last_it);
240
}
241
0 commit comments