+
Skip to content

WIP: Add support for art::GetOsThreadStat to ThreadCountCloaker #1184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AeonLucid
Copy link

@AeonLucid AeonLucid commented Jul 12, 2025

Closes


The issue is similar to #500, where zygote is waiting for a single thread to continue, otherwise it crashes.
For a while this has been changed to use art::GetOsThreadStat, so the old fix no longer works.
See android source code for reference:


Not ready to be merged

While this does correctly cloak the same as it used to, processes are still being sigkilled. Zygote no longer crashes however.
It might be unrelated to this pull request but it would be nice to have someone look over it.

07-12 06:30:58.326 14346 14346 W zygote64: Activation of cgroup controller +memory failed in path /sys/fs/cgroup/apps/uid_10173: Invalid argument
07-12 06:30:58.329   875   875 D Zygote  : Forked child process 14346
07-12 06:30:58.330  1291  1514 I ActivityManager: Start proc 14346:com.android.chrome/u0a173 for next-top-activity {com.android.chrome/com.google.android.apps.chrome.Main}
07-12 06:30:58.331 14346 14346 I .android.chrome: Using CollectorTypeCMC GC.
07-12 06:30:58.333 14346 14346 E .android.chrome: Not starting debugger since process cannot load the jdwp agent.
07-12 06:31:08.332  1291  1513 W ActivityManager: Process ProcessRecord{13d3f97 14346:com.android.chrome/u0a173} failed to attach
07-12 06:31:08.333  1291  1513 W ActivityTaskManager: ProcessRecord{13d3f97 14346:com.android.chrome/u0a173} is removed with pending start ActivityRecord{196034115 u0 com.android.chrome/com.google.android.apps.chrome.Main t51}
07-12 06:31:08.383  1291  1513 I ActivityManager: Killing 14346:com.android.chrome/u0a173 (adj -10000): start timeout
07-12 06:31:08.411  1291  1515 I libprocessgroup: Removed cgroup /sys/fs/cgroup/apps/uid_10173/pid_14346
07-12 06:31:08.414   875   875 I Zygote  : Process 14346 exited due to signal 9 (Killed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载