diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-30 11:16:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-30 11:16:05 +0000 |
commit | edd9ca9cd2760fd50ca9a51477b36e887510f476 (patch) | |
tree | f001a7b1bf808eb58234d15688f9f01a87da434d | |
parent | 858a5ba2ef16dde41085ab3e622f155fcf9b5be8 (diff) | |
download | ruby-edd9ca9cd2760fd50ca9a51477b36e887510f476.tar.gz |
* ruby_atomic.h (ATOMIC_PTR_EXCHANGE): fixed previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@44765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ruby_atomic.h | 2 | ||||
-rw-r--r-- | version.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ruby_atomic.h b/ruby_atomic.h index 81990620ef..a811587cc3 100644 --- a/ruby_atomic.h +++ b/ruby_atomic.h @@ -19,7 +19,7 @@ typedef unsigned int rb_atomic_t; /* Anything OK */ # define ATOMIC_SIZE_INC(var) __sync_fetch_and_add(&(var), 1) # define ATOMIC_SIZE_DEC(var) __sync_fetch_and_sub(&(var), 1) # define ATOMIC_SIZE_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val)) -# define ATOMIC_PTR_EXCHANGE(var, val) __atomic_exchange_n(&(var), (val), __ATOMIC_SEQ_CST) +# define ATOMIC_PTR_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val)) #elif defined _WIN32 #if defined _MSC_VER && _MSC_VER > 1200 @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 507 +#define RUBY_PATCHLEVEL 508 #define RUBY_RELEASE_DATE "2014-01-30" #define RUBY_RELEASE_YEAR 2014 |