* use our memory barriers instead of ptmalloc2's, since it only does the
right thing with gcc on x86. This commit was SVN r8490.
Этот коммит содержится в:
родитель
a7ef9fc379
Коммит
01e7191c3e
@ -739,7 +739,10 @@ arena_get2(a_tsd, size) mstate a_tsd; size_t size;
|
|||||||
/* Add the new arena to the global list. */
|
/* Add the new arena to the global list. */
|
||||||
(void)mutex_lock(&list_lock);
|
(void)mutex_lock(&list_lock);
|
||||||
a->next = main_arena.next;
|
a->next = main_arena.next;
|
||||||
|
/* OMPI: use our barriers
|
||||||
atomic_write_barrier ();
|
atomic_write_barrier ();
|
||||||
|
*/
|
||||||
|
opal_atomic_wmb();
|
||||||
main_arena.next = a;
|
main_arena.next = a;
|
||||||
(void)mutex_unlock(&list_lock);
|
(void)mutex_unlock(&list_lock);
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
#include "opal/include/sys/atomic.h"
|
||||||
#include "opal/memoryhooks/memory_internal.h"
|
#include "opal/memoryhooks/memory_internal.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user