mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-27 21:30:06 -04:00
update: 更新文件 extension_config_mgr.cpp
Signed-off-by: zhang_hao_zheng <zhanghaozheng2@h-partners.com>
This commit is contained in:
@@ -94,12 +94,10 @@ void ExtensionConfigMgr::UpdateRuntimeModuleChecker(const std::unique_ptr<Abilit
|
||||
SetExtensionEtsCheckCallback(runtime);
|
||||
}
|
||||
|
||||
// Copy blocklist with lock protection to avoid holding lock during moduleChecker creation
|
||||
std::unordered_map<int32_t, std::unordered_set<std::string>> localBlocklist;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(extensionBlockListMutex_);
|
||||
localBlocklist = extensionBlocklist_;
|
||||
// Note: Don't clear here, let the cache remain for potential reuse
|
||||
}
|
||||
|
||||
auto moduleChecker = std::make_shared<AppModuleChecker>(extensionType_, localBlocklist);
|
||||
|
||||
Reference in New Issue
Block a user