is there an unspoken behaviour that the count cannot be exceeded (without overflow), thus allowing the implementation to leverage a stop condition elsewhere (like in downgrade)?
The question
Can there be a simpler explanation for the Ch.6 Arc optimization?
The content that the question is about
Regarding this section roughly around:
it's not readily clear to me how the facade of a mutex over
usize::MAX
is used to guarantee the correctness ofget_mut
for the given snippet:is there an unspoken behaviour that the count cannot be exceeded (without overflow), thus allowing the implementation to leverage a stop condition elsewhere (like in
downgrade
)?The question
Can there be a simpler explanation for the Ch.6 Arc optimization?