回退 'Pull Request !10001 : 添加定界日志'

This commit is contained in:
于文泽 2024-10-09 09:00:37 +00:00 committed by Gitee
parent 00fb9c8576
commit 05c2658d27
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 29 deletions

View File

@ -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;
}

View File

@ -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);
}
}