зеркало из https://github.com/github/ruby.git
* gc.c (ATOMIC_SIZE_EXCHANGE): fix function name on Solaris [Bug #6689]
[ruby-dev:45904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a7c6f0afae
Коммит
1e972da39c
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 3 23:14:16 2012 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* gc.c (ATOMIC_SIZE_EXCHANGE): fix function name on Solaris [Bug #6689]
|
||||
[ruby-dev:45904]
|
||||
|
||||
Tue Jul 3 16:07:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (vm_malloc_fixup, vm_xrealloc, vm_xfree, after_gc_sweep): use
|
||||
|
|
2
gc.c
2
gc.c
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче