mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
回退 'Pull Request !10001 : 添加定界日志'
This commit is contained in:
parent
00fb9c8576
commit
05c2658d27
@ -37,22 +37,6 @@
|
||||
namespace OHOS {
|
||||
namespace AppExecFwk {
|
||||
constexpr int32_t CYCLE_LIMIT = 1000;
|
||||
namespace {
|
||||
#ifdef __aarch64__
|
||||
constexpr uint32_t OBJECT_MASK = 0xffffffff;
|
||||
#else
|
||||
constexpr uint32_t OBJECT_MASK = 0xffffff;
|
||||
#endif
|
||||
|
||||
uint32_t ConvertAddr(const void *ptr)
|
||||
{
|
||||
if (ptr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "ptr is null");
|
||||
return 0;
|
||||
}
|
||||
return static_cast<uint32_t>((reinterpret_cast<uintptr_t>(ptr)) & OBJECT_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
AppMgrStub::AppMgrStub() {}
|
||||
|
||||
@ -372,12 +356,6 @@ int32_t AppMgrStub::HandleAttachApplication(MessageParcel &data, MessageParcel &
|
||||
if (client == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "remote object null");
|
||||
}
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "remote: %{public}u", ConvertAddr(client.GetRefPtr()));
|
||||
IPCObjectProxy *proxy = reinterpret_cast<IPCObjectProxy *>(client.GetRefPtr());
|
||||
if (proxy != nullptr) {
|
||||
int32_t pid = static_cast<int32_t>(IPCSkeleton::GetCallingPid());
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "handle:%{public}u, callingPid:%{public}d", proxy->GetHandle(), pid);
|
||||
}
|
||||
AttachApplication(client);
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "freeze_util.h"
|
||||
#include "hilog_tag_wrapper.h"
|
||||
#include "hitrace_meter.h"
|
||||
#include "ipc_object_proxy.h"
|
||||
#include "time_util.h"
|
||||
#include "app_mgr_service_const.h"
|
||||
#include "app_mgr_service_dump_error_code.h"
|
||||
@ -40,12 +39,6 @@ void AppLifeCycleDeal::LaunchApplication(const AppLaunchData &launchData, const
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread) {
|
||||
auto remoteObject = appThread->AsObject();
|
||||
IPCObjectProxy *proxy = reinterpret_cast<IPCObjectProxy *>(remoteObject.GetRefPtr());
|
||||
if (proxy != nullptr) {
|
||||
int32_t pid = static_cast<int32_t>(launchData.GetProcessInfo().GetPid());
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "handle:%{public}u, pid:%{public}d", proxy->GetHandle(), pid);
|
||||
}
|
||||
appThread->ScheduleLaunchApplication(launchData, config);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user