Skip to content

Commit 6b052d0

Browse files
committed
fix(thread_test): increase TLS alignment
1 parent b6a7588 commit 6b052d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/thread_test/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ thread_local! {
2626

2727
// A custom type with 128-byte alignment.
2828
#[derive(Clone, Copy)]
29-
#[repr(align(128))]
29+
#[repr(align(0x1000))]
3030
struct AlignedType(u8);
3131
thread_local! {
3232
static TLS_ALIGNED: Cell<AlignedType> = const { Cell::new(AlignedType(0x42)) };

0 commit comments

Comments
 (0)