The loader context's reference count is only set to zero in case of
a low memory event, which will result in terminating
the currently running loader process.
This modification aims to fix the issue where the loader process responsible for
handling launch requests gets terminated during an out-of-memory (OOM) situation.
Change-Id: Iaa3c961d29ef1a8726ff53af8cd911ab4504bc27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
}
void LoaderContext::UpdateState(LoaderMethod method, bool force) {
+ if (RefCount() > 0) return;
+
_W("type(%d), loader_name(%s), activated(%d), method(%d), force(%d)",
GetType(), GetLoaderName().c_str(), activated_, static_cast<int>(method),
force);