-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Incorrect no. of threads in x86_64-apple-darwin
targets run on Apple chips (M3 at least)
#18
Comments
Confirmed on an M1 chip, which is all I have access to. I'm not sure what could be causing this, as it's the same code being run in both situations. |
no idea (could be that SMT is involved, but it's unlikely), but it's pretty persistent, and I wasn't able to find a reliable indicator for discerning between "real" and "imaginary" threads: https://gist.github.com/TicClick/360cc924b6e8abfd64e3f8e70014b527 the only oddity is that one of these (imaginary?) had a significantly higher cpu time |
sampling the binary's activity using Activity Monitor yields this:
while being a very fair result, it's still not what LLDB sees -- somehow it's able to narrow it down just to the binary's specific threads excluding the translation layer, and I think |
https://discourse.llvm.org/t/76874 well LLDB uses a separate debugserver, and that's where it ends -- either find a rosetta-thread-defining feature, or return |
LLDB says it's 1 in both cases, which appears correct to me:
Project info
Cargo.toml
Cargo.lock
The text was updated successfully, but these errors were encountered: