mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-27 09:11:04 +00:00
revert code
Signed-off-by: nianyuu <zhouwenqiang12@huawei.com>
This commit is contained in:
parent
7b72440a7d
commit
a9835afa1a
@ -113,8 +113,10 @@ static void LoadExtendLib(void)
|
||||
|
||||
OHOS::AppExecFwk::MainThread::PreloadExtensionPlugin();
|
||||
bool preload = OHOS::system::GetBoolParameter("persist.appspawn.preload", DEFAULT_PRELOAD_VALUE);
|
||||
APPSPAWN_CHECK(preload, dlclose(aceAbilityLib);
|
||||
return, "LoadExtendLib: Do not preload JS VM");
|
||||
if (!preload) {
|
||||
APPSPAWN_LOGI("LoadExtendLib: Do not preload JS VM");
|
||||
return;
|
||||
}
|
||||
|
||||
APPSPAWN_LOGI("LoadExtendLib: Start preload JS VM");
|
||||
SetTraceDisabled(true);
|
||||
@ -123,8 +125,7 @@ static void LoadExtendLib(void)
|
||||
|
||||
OHOS::Ace::AceForwardCompatibility::ReclaimFileCache(getpid());
|
||||
Resource::ResourceManager *systemResMgr = Resource::GetSystemResourceManagerNoSandBox();
|
||||
APPSPAWN_CHECK(systemResMgr != nullptr, dlclose(aceAbilityLib);
|
||||
return, "Fail to get system resource manager");
|
||||
APPSPAWN_CHECK(systemResMgr != nullptr, return, "Fail to get system resource manager");
|
||||
APPSPAWN_LOGI("LoadExtendLib: End preload JS VM");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user