From 9512d9c1d9e5ee90bff9c29946c1118364f576f7 Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Fri, 13 Nov 2020 10:12:56 +0900 Subject: [PATCH 1/2] Relaxed size constrait of Local (closes #597) --- crossbeam-epoch/src/internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs index 9976ffe86..79a6ca6d0 100644 --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -376,7 +376,7 @@ pub struct Local { // https://github.com/crossbeam-rs/crossbeam/issues/551 #[test] fn local_size() { - assert_eq!(2040, core::mem::size_of::()); + assert!(core::mem::size_of::() <= 2040, "An allocation of `Local` should be <= 2048 bytes."); } impl Local { From afd5d8f6d89cb8ec4d6825be565db1353a832096 Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Sun, 22 Nov 2020 13:21:05 +0900 Subject: [PATCH 2/2] Update local's size limit --- crossbeam-epoch/src/internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs index 79a6ca6d0..bf2dfb887 100644 --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -376,7 +376,7 @@ pub struct Local { // https://github.com/crossbeam-rs/crossbeam/issues/551 #[test] fn local_size() { - assert!(core::mem::size_of::() <= 2040, "An allocation of `Local` should be <= 2048 bytes."); + assert!(core::mem::size_of::() <= 2048, "An allocation of `Local` should be <= 2048 bytes."); } impl Local {