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 +4 -4
- data/ext/gc_tracer/gc_tracer.c +6 -6
- data/lib/gc_tracer/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40ce88a683ae35d05716971bb306c3b796cf223
|
4
|
+
data.tar.gz: c6b1f8d10cdb302ff382f48bcbc9ce54b0a79ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5a14088fedc2332d5a9bcf43e0f080a7eea7875d82227dc20ed6c2fc685d1d29add57bbd68f7ecc61155cea27602e0a9f8c2351b609d07f4f2f0e8a0775b1c8
|
7
|
+
data.tar.gz: 156d0e736ae8421c6fd0808dd7eef3965fa41974534cb2d06388289aef545cfa9a33deb45f04932129b18a66fa69119968f2f37719c05857943c0a532abfe996
|
data/ext/gc_tracer/gc_tracer.c
CHANGED
@@ -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
|
-
#
|
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
|
data/lib/gc_tracer/version.rb
CHANGED
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.
|
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-
|
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:
|