Skip to content

Commit

Permalink
Reduce exceptions overallocation on non Windows x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Nov 15, 2022
1 parent 6d651a2 commit 10d0f14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/unwind/src/libunwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ pub type _Unwind_Trace_Fn =
#[cfg(target_arch = "x86")]
pub const unwinder_private_data_size: usize = 5;

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", not(target_os = "windows")))]
pub const unwinder_private_data_size: usize = 2;

#[cfg(all(target_arch = "x86_64", target_os = "windows"))]
pub const unwinder_private_data_size: usize = 6;

#[cfg(all(target_arch = "arm", not(any(target_os = "ios", target_os = "watchos"))))]
Expand Down

0 comments on commit 10d0f14

Please sign in to comment.