Commit 6c2902b
avoid reading of uninit data
Summary:
the tests showed that the reader thread can start before the writer did the first write. That means the load function will return uninit data. Let's use a sequence value of 0 as special indicator of uninit structure
add a bit more print info for the failed test
Reviewed By: t3lurid3
Differential Revision: D75869421
fbshipit-source-id: c12c6689578b1ec705a0dad224b3b21c5d50578f1 parent 6928057 commit 6c2902b
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
136 | 143 | | |
137 | 144 | | |
138 | 145 | | |
| |||
0 commit comments