summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-06 01:44:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-06 01:44:03 +0000
commitec10c033a7f6ba4819b7a65eb31eba432028f28a (patch)
treed46a845820f797fae3eed46958c6dee3ba6ed3a6 /gc.c
parentff7eb4c656b0d7629ff00366878fed5fbf86eb93 (diff)
ruby_atomic.h: atomic VALUE operations
* ruby_atomic.h (ATOMIC_VALUE_EXCHANGE, ATOMIC_VALUE_CAS): add atomic operations for VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index ac4f575241..1c0eaad8d2 100644
--- a/gc.c
+++ b/gc.c
@@ -2633,7 +2633,7 @@ finalize_deferred(rb_objspace_t *objspace)
{
VALUE zombie;
- while ((zombie = (VALUE)ATOMIC_PTR_EXCHANGE(heap_pages_deferred_final, 0)) != 0) {
+ while ((zombie = ATOMIC_VALUE_EXCHANGE(heap_pages_deferred_final, 0)) != 0) {
finalize_list(objspace, zombie);
}
}