Skip to content

Commit

Permalink
Increase the ThreadState structure minimum alignment to 8 bytes
Browse files Browse the repository at this point in the history
This fixes rust-minidump#82
  • Loading branch information
gabrielesvelto committed Jun 13, 2023
1 parent e706902 commit d7c4b9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mac/mach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ cfg_if::cfg_if! {
}
}

#[repr(C, align(8))]
pub struct ThreadState {
pub state: [u32; THREAD_STATE_MAX],
pub state_size: u32,
Expand Down

0 comments on commit d7c4b9f

Please sign in to comment.