Summary
Avoid getrusage system calls in GC
Metadata
- Id: ade3b7a7681db3ccce6f8d3fb29f65bf0bb5f7c4
- Trac id: 1803
- Type: defect
- Reporter: felix
- Owner:
- Cc:
- Status: new
- Component: core libraries
- Estimated difficulty: medium
- Resolution:
- Priority: major
- Milestone: 6.0.0
- Version: 5.3.0
- Changetime: 2023-11-06 22:13:54 UTC
- Created: 2022-05-31 13:16:34 UTC
- Keywords:
Description
To calculate GC time statistics, `C_cpu_milliseconds` is currently used, which results in an getrusage(2) system call on many platforms. This should be avoided, preferrably by using a faster alternative like clock(3).