gc_tracer 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8deb0d031623ce6d6484188fe0dc7d1839eb821d
4
- data.tar.gz: 5336cd2d9be4e978cbc05210f94935d0c7e05175
3
+ metadata.gz: d40ce88a683ae35d05716971bb306c3b796cf223
4
+ data.tar.gz: c6b1f8d10cdb302ff382f48bcbc9ce54b0a79ecc
5
5
  SHA512:
6
- metadata.gz: 6e41f20720e46528193bc61a298b79f7b75f10ea6f38ba289838b0a011a9e26695593075437eb2e8b47bc9e58ee1c15f1cc1d1ae4d47196f32e91871ca9bf118
7
- data.tar.gz: 7c12074bd87f5fbf8a69f3cc5e45acde78f994e0dfb8b43f7ed715c92f3d0e27472c3b8b7dc612578d4ac95eb961b1581b5810866e38269b04e6b641a0a8934c
6
+ metadata.gz: b5a14088fedc2332d5a9bcf43e0f080a7eea7875d82227dc20ed6c2fc685d1d29add57bbd68f7ecc61155cea27602e0a9f8c2351b609d07f4f2f0e8a0775b1c8
7
+ data.tar.gz: 156d0e736ae8421c6fd0808dd7eef3965fa41974534cb2d06388289aef545cfa9a33deb45f04932129b18a66fa69119968f2f37719c05857943c0a532abfe996
@@ -11,6 +11,11 @@
11
11
  #include <stdio.h>
12
12
  #include <assert.h>
13
13
 
14
+ #ifdef HAVE_RB_OBJ_GC_FLAGS
15
+ size_t rb_obj_gc_flags(VALUE obj, ID* flags, size_t max);
16
+ static ID id_young;
17
+ #endif
18
+
14
19
  struct gc_hooks {
15
20
  VALUE hooks[3];
16
21
  VALUE enabled;
@@ -549,11 +554,6 @@ static struct picker_description object_age_picker_description[] = {
549
554
  {"shady slot", 0xd62728}
550
555
  };
551
556
 
552
- #ifdef HAVE_RB_OBJ_GC_FLAGS
553
- size_t rb_obj_gc_flags(VALUE obj, ID* flags, size_t max);
554
- static ID id_young;
555
- #endif
556
-
557
557
  static int
558
558
  object_age_picker(VALUE v) {
559
559
  if (RB_TYPE_P(v, T_NONE)) {
@@ -842,7 +842,7 @@ Init_gc_tracer(void)
842
842
  /* warm up */
843
843
  rb_gc_latest_gc_info(ID2SYM(rb_intern("gc_by")));
844
844
  rb_gc_stat(ID2SYM(rb_intern("count")));
845
- #if HAVE_RB_OBJ_GC_FLAGS
845
+ #ifdef HAVE_RB_OBJ_GC_FLAGS
846
846
  rb_obj_gc_flags(rb_cObject, NULL, 0);
847
847
  id_young = rb_intern("young");
848
848
  #endif
@@ -1,3 +1,3 @@
1
1
  module GC::Tracer
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gc_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-16 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,3 +118,4 @@ summary: gc_tracer gem adds GC::Tracer module.
118
118
  test_files:
119
119
  - spec/gc_tracer_spec.rb
120
120
  - spec/spec_helper.rb
121
+ has_rdoc: