readapt 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/ext/readapt/monitor.c +15 -19
- data/lib/readapt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c60f531994db02e3c7592e83854acd4ed407c72fb8cea7d917bd22a47a7e0d37
|
4
|
+
data.tar.gz: 427826613e80cd2ede776dd58a4ec84aee7be8a0a507dcd1da51dac78c2035e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc1eb602525d5dff1b8ad38254285eed0c52b48c9e996164ad8f54cf525c7f6097872f835e61aee622ae203ec4bc611bb2965dc87866b07ca736ec7c42614da
|
7
|
+
data.tar.gz: b0f4250aacaf718351ceabe475c73ae923b0373392247733960c61d577cf042b95084985cfe36c2412d47e96a2b732eabb601e862d9c61268a20e33005b295a3
|
data/CHANGELOG.md
CHANGED
data/ext/readapt/monitor.c
CHANGED
@@ -166,7 +166,7 @@ process_return_event(VALUE tracepoint, void *data)
|
|
166
166
|
static void
|
167
167
|
process_thread_begin_event(VALUE tracepoint, void *data)
|
168
168
|
{
|
169
|
-
VALUE list, here, prev, ref
|
169
|
+
VALUE list, here, prev, ref;
|
170
170
|
thread_reference_t *ptr;
|
171
171
|
|
172
172
|
list = rb_funcall(rb_cThread, rb_intern("list"), 0);
|
@@ -174,23 +174,20 @@ process_thread_begin_event(VALUE tracepoint, void *data)
|
|
174
174
|
if (here != Qnil)
|
175
175
|
{
|
176
176
|
prev = rb_ary_pop(list);
|
177
|
+
if (prev != Qnil)
|
177
178
|
{
|
178
|
-
|
179
|
+
ref = thread_reference(prev);
|
180
|
+
if (ref != Qnil)
|
179
181
|
{
|
180
|
-
ref =
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
tracepoint,
|
190
|
-
ptr,
|
191
|
-
rb_intern("thread_begin")
|
192
|
-
);
|
193
|
-
}
|
182
|
+
ref = thread_add_reference(here);
|
183
|
+
ptr = thread_reference_pointer(ref);
|
184
|
+
monitor_debug(
|
185
|
+
"",
|
186
|
+
0,
|
187
|
+
tracepoint,
|
188
|
+
ptr,
|
189
|
+
rb_intern("thread_begin")
|
190
|
+
);
|
194
191
|
}
|
195
192
|
}
|
196
193
|
}
|
@@ -199,7 +196,7 @@ process_thread_begin_event(VALUE tracepoint, void *data)
|
|
199
196
|
static void
|
200
197
|
process_thread_end_event(VALUE tracepoint, void *data)
|
201
198
|
{
|
202
|
-
VALUE thr, ref
|
199
|
+
VALUE thr, ref;
|
203
200
|
thread_reference_t *ptr;
|
204
201
|
|
205
202
|
thr = rb_thread_current();
|
@@ -207,8 +204,7 @@ process_thread_end_event(VALUE tracepoint, void *data)
|
|
207
204
|
if (ref != Qnil)
|
208
205
|
{
|
209
206
|
ptr = thread_reference_pointer(ref);
|
210
|
-
|
211
|
-
monitor_debug(StringValueCStr(tmp), NUM2LONG(rb_funcall(tracepoint, rb_intern("lineno"), 0)), tracepoint, ptr, rb_intern("thread_end"));
|
207
|
+
monitor_debug("", 0, tracepoint, ptr, rb_intern("thread_end"));
|
212
208
|
thread_delete_reference(thr);
|
213
209
|
}
|
214
210
|
}
|
data/lib/readapt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readapt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backport
|