Add a read barrier in the traversing of the buffer list
Needed on systems with weak memory ordering - the inferior, partially working fix from #2544 was already removed in #2551
This commit is contained in:
parent
f5efecb7ca
commit
f41600e66f
|
@ -2741,6 +2741,7 @@ void *blas_memory_alloc(int procpos){
|
|||
LOCK_COMMAND(&alloc_lock);
|
||||
#endif
|
||||
do {
|
||||
RMB;
|
||||
#if defined(USE_OPENMP)
|
||||
if (!memory[position].used) {
|
||||
blas_lock(&memory[position].lock);
|
||||
|
|
Loading…
Reference in New Issue