atomic 1.1.4-java → 1.1.5-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  # Update these to get proper version and commit history
4
- new_version = "1.1.4"
5
- old_version = "1.1.0"
4
+ new_version = "1.1.5"
5
+ old_version = "1.1.4"
6
6
 
7
7
  git_lines = `git log --oneline #{old_version}...#{new_version}`.lines.map {|str| "* #{str}"}.join
8
8
  doc_lines = File.readlines("README.rdoc")
@@ -50,7 +50,7 @@ static VALUE ir_compare_and_set(volatile VALUE self, VALUE expect_value, VALUE n
50
50
  if (OSAtomicCompareAndSwap64(expect_value, new_value, &DATA_PTR(self))) {
51
51
  return Qtrue;
52
52
  }
53
- #elif (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) > 40100
53
+ #elif HAVE_GCC_CAS
54
54
  if (__sync_bool_compare_and_swap(&DATA_PTR(self), expect_value, new_value)) {
55
55
  return Qtrue;
56
56
  }
@@ -14,6 +14,14 @@ require 'mkmf'
14
14
  extension_name = 'atomic_reference'
15
15
  dir_config(extension_name)
16
16
 
17
+ try_run(<<CODE) && ($defs << '-DHAVE_GCC_CAS')
18
+ int main() {
19
+ int i = 1;
20
+ __sync_bool_compare_and_swap(&i, 1, 4);
21
+ return (i != 4);
22
+ }
23
+ CODE
24
+
17
25
  case CONFIG["arch"]
18
26
  when /mswin32|mingw/
19
27
  $CFLAGS += " -march=i686"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: atomic
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.4
5
+ version: 1.1.5
6
6
  platform: java
7
7
  authors:
8
8
  - Charles Oliver Nutter
@@ -17,16 +17,11 @@ description: |
17
17
  = An atomic reference implementation for JRuby, Rubinius, and MRI.
18
18
 
19
19
 
20
- == Changes since 1.1.0
20
+ == Changes since 1.1.4
21
21
 
22
+ * e269463 Fix #15 by explicitly testing for GCC's CAS.
23
+ * b8858f9 More formatting for description.
22
24
  * a574b34 More formatting for description.
23
- * 58d3e34 Convert README to rdoc and try again.
24
- * f519385 Attempting to get description to look nice on rubygems.org.
25
- * 2c5ab6c Include README and oneline logs in gem description.
26
- * 6aeb053 Add @funny-falcon to authors.
27
- * aa24d4d Bump version to 1.1.1.
28
- * dc327eb Merge pull request #16 from funny-falcon/patch-1
29
- * 1b68767 Fix JRUBYREFERENCE8_ALLOCATOR
30
25
 
31
26
  == Summary
32
27
 
@@ -117,7 +112,6 @@ executables: []
117
112
  extensions: []
118
113
  extra_rdoc_files: []
119
114
  files:
120
- - lib/atomic_reference.jar
121
115
  - test/test_atomic.rb
122
116
  - .gitignore
123
117
  - .travis.yml
@@ -148,17 +142,17 @@ rdoc_options: []
148
142
  require_paths:
149
143
  - lib
150
144
  required_ruby_version: !ruby/object:Gem::Requirement
151
- none: false
152
145
  requirements:
153
146
  - - '>='
154
147
  - !ruby/object:Gem::Version
155
148
  version: '0'
156
- required_rubygems_version: !ruby/object:Gem::Requirement
157
149
  none: false
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
151
  requirements:
159
152
  - - '>='
160
153
  - !ruby/object:Gem::Version
161
154
  version: '0'
155
+ none: false
162
156
  requirements: []
163
157
  rubyforge_project:
164
158
  rubygems_version: 1.8.24