已开启
fix: 移除 memLeakHasData_ 变量修复 native leaks 文件缺失问题 #3483
fix: 移除 memLeakHasData_ 变量修复 native leaks 文件缺失问题 #3483
已开启
gan-chuantao创建于 7 小时前
gan-chuantao
gan-chuantao
7 小时前

修改说明

  • 移除 memLeakHasData_ 变量,修复 native leaks 文件缺失问题。
  • 该变量在 DumpMemLeakInfo() 中设置,但 WaitMemLeakDoneIfNeeded() 在客户端回传数据前就被调用,导致因该变量为 false 而提前返回,最终 memleak-native-orphansnapshot-<pid>.txt 文件无法生成。
  • 移除后,WaitMemLeakDoneIfNeeded()native_orphansnapshots_enable 为 true 且 memLeakDumpDone_ 为 false 时会正确等待客户端数据(最多 30s)。

涉及文件

  • device/plugins/native_daemon/include/hook_manager.h:删除 memLeakHasData_ 声明
  • device/plugins/native_daemon/src/hook_manager.cpp:删除 DumpMemLeakInfo() 中的赋值和 WaitMemLeakDoneIfNeeded() 中的条件判断
likedislike
合并受阻
openharmony_ciopenharmony_ci成员
7 小时前 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
7 小时前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
7 小时前 添加了label:dco检查成功
gan-chuantaogan-chuantao
7 小时前 关联了issue:[新需求]: 移除 memLeakHasData_ 变量修复 native leaks 文件缺失问题
gan-chuantao
gan-chuantao
7 小时前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
7 小时前 评论:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【ohos-host_mini_tdd编译, x86_64_virt编译, dayu200测试, master_inner_build编译, dayu600_7885测试, dayu600_7885编译, dayu200_tdd编译, dayu200编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a8e8ba264650f998b28d9ce/runlist

likedislike
openharmony_ciopenharmony_ci成员
6 小时前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
6 小时前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
6 小时前 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
6 小时前 通过测试
openharmony_ci
openharmony_ci成员
6 小时前 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a8e8ba264650f998b28d9ce/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 dayu200 success success >>>
2 dayu200_tdd success NA >>>
3 master_inner_build failed(IGNORE)(联合门禁失败) NA >>>
4 ohos-host_mini_tdd success NA >>>
5 dayu600_7885 success success >>>
6 x86_64_virt success NA >>>

likedislike
openharmony_ciopenharmony_ci成员
6 小时前 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
6 小时前 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
6 小时前 评论:

您好,Committer @mzyan @Lutao98 ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @mzyan @Lutao98 . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike