Issue #6689 has been reported by ngoto (Naohisa Goto).

----------------------------------------
Bug #6689: r36284: symbol referenceng error: atomic_swap_long in Solaris
https://bugs.ruby-lang.org/issues/6689

Author: ngoto (Naohisa Goto)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: -


r36284以?????sparc???? Solaris 10 + Oracle Solaris Studio 12 ?????
atomic_swap_long ??????????????? symbol referenceng error ????????
miniruby???????????????以??????????????治?????????????

???????????r36284??追???????????? ATOMIC_SIZE_**** ?????????????群????
gc.c ??????????????以????????atomic???????????????置?????????
atomic.h ??追???????????????????#include??????形????????????????
#if ???件??????????????楽??????????大????????????????????????????
???????????????

Index: gc.c
===================================================================
--- gc.c        (revision 36289)
+++ gc.c        (working copy)
@@ -79,7 +79,7 @@
 # define ATOMIC_SIZE_SUB(var, val) atomic_add_long(&(var), -(val))
 # define ATOMIC_SIZE_INC(var) atomic_inc_ulong(&(var))
 # define ATOMIC_SIZE_DEC(var) atomic_dec_ulong(&(var))
-# define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_long(&(var), (val))
+# define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_ulong(&(var), (val))
 # else
 # define ATOMIC_SIZE_ADD(var, val) atomic_add_int(&(var), (val))
 # define ATOMIC_SIZE_SUB(var, val) atomic_add_int(&(var), -(val))



-- 
http://bugs.ruby-lang.org/