Skip to content

Isolated Processes 1: Refactor thread_info for ease of redirecting#174

Merged
marti4d merged 2 commits into
rust-minidump:mainfrom
marti4d:isolated_process/01-refactor-thread-info
May 13, 2026
Merged

Isolated Processes 1: Refactor thread_info for ease of redirecting#174
marti4d merged 2 commits into
rust-minidump:mainfrom
marti4d:isolated_process/01-refactor-thread-info

Conversation

@marti4d

@marti4d marti4d commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Currently, thread_info is a bit of a mess and is difficult to cleanly redirect into an interface.

This cleans it up and makes it easier to move around.

It also fixes a piece of unsound code (mod.rs line 165) where we are passing an immutable pointer to an API that says it will modify the result.

@marti4d
marti4d force-pushed the isolated_process/01-refactor-thread-info branch from 2f00be2 to c0cd63a Compare May 6, 2026 20:24
Comment thread src/linux/thread_info/mod.rs
Comment thread src/linux/thread_info/mod.rs
@Jake-Shadle
Jake-Shadle removed their request for review May 7, 2026 10:53

@gabrielesvelto gabrielesvelto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small changes here and there, most of this LGTM

Comment thread src/linux/thread_info/aarch64.rs
Comment thread src/linux/thread_info/arm.rs
Comment thread src/linux/thread_info/mips.rs Outdated
Comment thread src/linux/thread_info/mod.rs
Comment thread src/linux/thread_info/x86.rs
Comment thread src/linux/thread_info/x86.rs
Comment thread src/linux/thread_info/x86.rs Outdated
Comment thread src/linux/thread_info/x86.rs Outdated
marti4d added 2 commits May 8, 2026 10:42
Currently, thread_info is a bit of a mess and is difficult to cleanly
redirect into an interface.

This cleans it up and makes it easier to move around.

It also fixes a piece of unsound code (mod.rs line 165) where we are
passing an immutable pointer to an API that says it will modify the
result.
@marti4d
marti4d force-pushed the isolated_process/01-refactor-thread-info branch from c0cd63a to d19f007 Compare May 8, 2026 15:35
@marti4d
marti4d requested a review from gabrielesvelto May 11, 2026 21:56

@gabrielesvelto gabrielesvelto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, if @Jake-Shadle is OK with it too I'd merge it.

@marti4d

marti4d commented May 13, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @gabrielesvelto! @Jake-Shadle was originally a reviewer here and removed himself, so I'm going to assume that was him deferring to your judgement for the review -- So I'll merge this in :)

@marti4d
marti4d merged commit 4638ba0 into rust-minidump:main May 13, 2026
16 checks passed
@marti4d
marti4d deleted the isolated_process/01-refactor-thread-info branch May 13, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants