File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ pub trait Config: Sized {
39
39
pub ( crate ) trait CfgPrivate : Config {
40
40
const USED_BITS : usize = Generation :: < Self > :: LEN + Generation :: < Self > :: SHIFT ;
41
41
const INITIAL_SZ : usize = next_pow2 ( Self :: INITIAL_PAGE_SIZE ) ;
42
- const MAX_SHARDS : usize = next_pow2 ( Self :: MAX_THREADS ) ;
42
+ const MAX_SHARDS : usize = next_pow2 ( Self :: MAX_THREADS - 1 ) ;
43
43
const ADDR_INDEX_SHIFT : usize = Self :: INITIAL_SZ . trailing_zeros ( ) as usize + 1 ;
44
44
45
45
fn page_size ( n : usize ) -> usize {
@@ -126,9 +126,9 @@ impl Config for DefaultConfig {
126
126
const INITIAL_PAGE_SIZE : usize = 32 ;
127
127
128
128
#[ cfg( target_pointer_width = "64" ) ]
129
- const MAX_THREADS : usize = 0xFFF ;
129
+ const MAX_THREADS : usize = 4096 ;
130
130
#[ cfg( target_pointer_width = "32" ) ]
131
- const MAX_THREADS : usize = 2048 ;
131
+ const MAX_THREADS : usize = 0x7F ; // TODO(eliza):
132
132
133
133
const MAX_PAGES : usize = WIDTH / 2 ;
134
134
}
You can’t perform that action at this time.
0 commit comments