[all-commits] [llvm/llvm-project] b9c407: [lldb][Windows] Improve process_is_running check (...
Charles Zablit via All-commits
all-commits at lists.llvm.org
Wed Sep 30 07:02:12 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9c40729b28600a01a5503a4a73acfae55540cf2
https://github.com/llvm/llvm-project/commit/b9c40729b28600a01a5503a4a73acfae55540cf2
Author: Charles Zablit <c_zablit at apple.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
Log Message:
-----------
[lldb][Windows] Improve process_is_running check (#227308)
The current implementation of `process_is_running` uses
[`tasklist`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist)
on Windows. It prints each CSV field through ShowMessage, which calls
`GetConsoleOutputCP`. From a benchmark at desk, when under load, this
call takes `~85ms` instead of `~10us`. This causes tests to time out
when listing a large amount of processes when running check-lldb.
This patch asks the kernel about the one process instead of listing all
of them with tasklist.
rdar://188700994
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list