projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6fd31
)
tests: Fix subthread_create.c by defining AO_REQUIRE_CAS
author
Ivan Maidanski
<ivmai@mail.ru>
Sun, 4 Mar 2012 10:20:10 +0000
(14:20 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Sun, 4 Mar 2012 10:20:10 +0000
(14:20 +0400)
* subthread_create.c (AO_REQUIRE_CAS): Define in case of PARALLEL_MARK
(guaranteeing AO_fetch_and_add to be defined at least if GC is built
with parallel marking enabled).
tests/subthread_create.c
patch
|
blob
|
history
diff --git
a/tests/subthread_create.c
b/tests/subthread_create.c
index
8872209
..
8b7b087
100644
(file)
--- a/
tests/subthread_create.c
+++ b/
tests/subthread_create.c
@@
-4,6
+4,9
@@
#endif
#include "gc.h"
+#ifdef PARALLEL_MARK
+# define AO_REQUIRE_CAS
+#endif
#include "atomic_ops.h"
#include <stdio.h>