mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-27 04:09:31 +08:00
fix(v8): v8 code cache file broken protect
This commit is contained in:
@@ -351,8 +351,10 @@ bool RunScriptInternal(const std::shared_ptr<Runtime>& runtime,
|
||||
if (!read_script_flag || StringViewUtils::IsEmpty(script_content)) {
|
||||
TDF_BASE_LOG(WARNING) << "read_script_flag = " << read_script_flag
|
||||
<< ", script content empty, uri = " << uri;
|
||||
std::lock_guard<std::mutex> lock(code_cache_file_mutex);
|
||||
CheckUseCodeCacheAfterRunScript(code_cache_path);
|
||||
if (is_use_code_cache) {
|
||||
std::lock_guard<std::mutex> lock(code_cache_file_mutex);
|
||||
CheckUseCodeCacheAfterRunScript(code_cache_path);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user