Commit 2642b84
authored
* flush(): avoid memcpy(<dst>, NULL, 0)
During thread contention, it's possible for a thread to not call push()
even once, leaving gs_thread[me] unallocated. The resulting call to
memcpy() was noticed by a sanitizer during additional CRAN checks.
* NEWS item
* Add nocov to the hard-to-test branch
Currently, the condition is only encountered during thread contention,
which is prohibitively expensive to test or at least requires
non-portable tricks.
* Explain why the branch is #nocov
1 parent fb419f1 commit 2642b84
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments