Why does TID require one extra bit?
loyd opened this issue · 2 comments
loyd commented
In tid.rs
LEN
is defined as:
Line 47 in 8ebe120
that gives for the default config (MAX_THREADS = 4096
) 13 bit space instead of 12:
assert_eq!(Tid::<crate::cfg::DefaultConfig>::LEN, 13);
Meanwhile, we have two different checks for TID overflow:
I've missed something?
loyd commented
Any thoughts? Maybe I missed something. Extra bit would be most welcome =)
hawkw commented
this might be a bug on my part, whoops!