We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 857d969 commit 56f9e75Copy full SHA for 56f9e75
src/weak_memory.rs
@@ -68,6 +68,10 @@ use crate::{
68
69
pub type AllocExtra = StoreBufferAlloc;
70
71
+// Each store buffer must be bounded otherwise it will grow indefinitely.
72
+// However, bounding the store buffer means restricting the amount of weak
73
+// behaviours observable. The author picked 128 as a good tradeoff
74
+// so we follow them here.
75
const STORE_BUFFER_LIMIT: usize = 128;
76
77
#[derive(Debug, Clone)]
0 commit comments