atomic 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{atomic}
5
- s.version = "0.0.9"
5
+ s.version = "1.0.0"
6
6
  s.authors = ["Charles Oliver Nutter", "MenTaLguY"]
7
7
  s.date = Time.now.strftime('%Y-%m-%d')
8
8
  s.description = "An atomic reference implementation for JRuby, Rubinius, and MRI"
@@ -1,7 +1,7 @@
1
1
  #include <ruby.h>
2
2
 
3
3
  static void ir_mark(void *value) {
4
- rb_gc_mark((VALUE)value);
4
+ rb_gc_mark_maybe((VALUE)value);
5
5
  }
6
6
 
7
7
  static VALUE ir_alloc(VALUE klass) {
@@ -51,7 +51,8 @@ void Init_atomic_reference() {
51
51
  cAtomic = rb_const_get(rb_cObject, rb_intern("Atomic"));
52
52
  cInternalReference = rb_define_class_under(cAtomic, "InternalReference",
53
53
  rb_cObject);
54
- rb_define_alloc_func(cAtomic, ir_alloc);
54
+
55
+ rb_define_alloc_func(cInternalReference, ir_alloc);
55
56
 
56
57
  rb_define_method(cInternalReference, "initialize", ir_initialize, 1);
57
58
  rb_define_method(cInternalReference, "get", ir_get, 0);
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 9
10
- version: 0.0.9
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Oliver Nutter
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-12-03 00:00:00 Z
19
+ date: 2012-02-01 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: An atomic reference implementation for JRuby, Rubinius, and MRI
@@ -31,6 +31,7 @@ extra_rdoc_files: []
31
31
 
32
32
  files:
33
33
  - lib/atomic.rb
34
+ - lib/atomic_reference.jar
34
35
  - examples/atomic_example.rb
35
36
  - examples/bench_atomic.rb
36
37
  - examples/bench_atomic_1.rb
@@ -71,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
72
  requirements: []
72
73
 
73
74
  rubyforge_project:
74
- rubygems_version: 1.8.5
75
+ rubygems_version: 1.8.15
75
76
  signing_key:
76
77
  specification_version: 3
77
78
  summary: An atomic reference implementation for JRuby, Rubinius, and MRI