Skip to content

Commit 20d6a44

Browse files
authored
Rollup merge of #104464 - mati865:reduce-eh-overallocation-amd64, r=thomcc
Reduce exceptions overallocation on non Windows x86_64 Addressing #103894 (comment)
2 parents 680ba90 + 10d0f14 commit 20d6a44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/unwind/src/libunwind.rs

+4-1
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)