Open Jarred-Sumner opened 9 months ago
This only happens when pidfd_open is not supported. It must be using the waiter thread for this to reproduce.
pidfd_open
1.0.24+b1273e53d
Linux x64
import { $ } from 'bun';
await $echo hi
echo hi
setTimeout(() => {}, 100_000);
2. Run ```sh BUN_FEATURE_FLAG_FORCE_WAITER_THREAD=1 BUN_GARBAGE_COLLECTOR_LEVEL=1 bun ./foo.js
CPU usage should not be 100%
High CPU usage
No response
this looks like it's fixed now
This only happens when
pidfd_open
is not supported. It must be using the waiter thread for this to reproduce.What version of Bun is running?
1.0.24+b1273e53d
What platform is your computer?
Linux x64
What steps can reproduce the bug?
await $
echo hi
setTimeout(() => {}, 100_000);
What is the expected behavior?
CPU usage should not be 100%
What do you see instead?
High CPU usage
Additional information
No response