cloudflare / foundations

Cloudflare's Rust service foundations library.
https://blog.cloudflare.com/introducing-foundations-our-open-source-rust-service-foundation-library
BSD 3-Clause "New" or "Revised" License
1.25k stars 51 forks source link

ZTC-1648: Avoid heap profiling crash by eagerly starting long-lived profiling thread #54

Closed OmegaJak closed 1 month ago

OmegaJak commented 2 months ago

Closes #46

Rather than fully removing seccomp setup in the memory profiler, which would require adding new syscalls to the whole application's configuration, the memory profiler now spawns a long-lived thread during startup, before global seccomp is initialized. This thread no longer sets up seccomp for itself.

OmegaJak commented 1 month ago

CI failure should be fixed with #57