Skip to content

Ensure GC logs are printed atomically#2874

Merged
mshinwell merged 1 commit intooxcaml:mainfrom
stedolan:fix-gc-log
Aug 6, 2024
Merged

Ensure GC logs are printed atomically#2874
mshinwell merged 1 commit intooxcaml:mainfrom
stedolan:fix-gc-log

Conversation

@stedolan
Copy link
Copy Markdown
Contributor

Multi-domain GC logging can currently interleave timestamps and messages, making them hard to read. This patch formats the message into a local buffer before writing it in a single call to fwrite, which makes the output nicer.

@mshinwell mshinwell merged commit 7e1b316 into oxcaml:main Aug 6, 2024
@mshinwell mshinwell added the to upstream PR should be sent to upstream OCaml label Aug 6, 2024
mshinwell pushed a commit that referenced this pull request Aug 19, 2024
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
lukemaurer pushed a commit that referenced this pull request Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runtime to upstream PR should be sent to upstream OCaml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants