Store serialized core in runtime cache
This commit is contained in:
+3
-1
@@ -886,7 +886,9 @@ public:
|
||||
if(!wasm_parse_sections(bytes, core_dylink, abi_ignored, parse_error))
|
||||
return("core module: " + parse_error);
|
||||
|
||||
String core_cached_path = cached_wasm_path(cfg.core_wasm_path);
|
||||
// Deployed runtime sources can be root-owned while workers run unprivileged.
|
||||
// Keep the derived serialized core in the configured writable cache root.
|
||||
String core_cached_path = path_join(cfg.cache_root, ".uce-core.cwasm");
|
||||
String compile_error;
|
||||
bool serialized_cache_hit = false;
|
||||
auto compiled_or_cached = load_or_compile_cached_module(engine, core_cached_path, cfg.core_wasm_path, bytes, compile_error, serialized_cache_hit);
|
||||
|
||||
Reference in New Issue
Block a user