Skip to content

Commit 10d0f14

Browse files
committed
Reduce exceptions overallocation on non Windows x86_64
Addressing #103894 (comment)
1 parent 6d651a2 commit 10d0f14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/unwind/src/libunwind.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ pub type _Unwind_Trace_Fn =
2727
#[cfg(target_arch = "x86")]
2828
pub const unwinder_private_data_size: usize = 5;
2929

30-
#[cfg(target_arch = "x86_64")]
30+
#[cfg(all(target_arch = "x86_64", not(target_os = "windows")))]
31+
pub const unwinder_private_data_size: usize = 2;
32+
33+
#[cfg(all(target_arch = "x86_64", target_os = "windows"))]
3134
pub const unwinder_private_data_size: usize = 6;
3235

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

0 commit comments

Comments
 (0)