mwrap 2.2.0 → 2.2.0.1.g867b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/mwrap/mwrap.c +3 -8
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 406933abeb7d63d1304c63f0f5aa7a2f4deb9ecb1820816886df8bfcf2d01601
4
- data.tar.gz: 214975358778869db55691d8ddcac9e078cc16be6870e143094bb837d88551eb
3
+ metadata.gz: b3766bf906f58529a4ddf88092f71cd4dc976e5c1dd1f147ffa30d7ebb0ddcf7
4
+ data.tar.gz: 594b60075684fbedb224dfbb2632df74971cd36b52d4e991e07146af9a7106cc
5
5
  SHA512:
6
- metadata.gz: a0a353c1ed720192b6dc63699d7d53661fc80c204429df3c93d4795b39cdec1d0e1b83c90e4250ddee11abd1911d578dd4f83516368a787a21fb1327de0ac32b
7
- data.tar.gz: 28fd47f870ec74cd4c15570e6f6df0b9ee80ff30eb460185f841d2bc796836dd8aa6d82a7e3304bf811d22acc2dfb3e00fa4f92143a0cbb04dbd78e99ae7231e
6
+ metadata.gz: a60e54ad4b1f024cd69ed7a968721c893310c5201516cc98d2023e9b61e54a20a1d8d1775fc6ca1f3638ebebc6ee32a4bb7c0ab6afc51b719203fbae4e955ba9
7
+ data.tar.gz: b9e1a20b64ddf602baf3f5a43e439b3a2742a31c45faad9725fa32fdfc4895f40ccf3949980dace0e51e3ef1cecc9b6e3674c3e0a78d2725f11711e23c4bcee5
data/ext/mwrap/mwrap.c CHANGED
@@ -32,7 +32,6 @@
32
32
 
33
33
  static ID id_uminus;
34
34
  const char *rb_source_location_cstr(int *line); /* requires 2.6.0dev */
35
- extern int __attribute__((weak)) ruby_thread_has_gvl_p(void);
36
35
 
37
36
  #ifdef HAVE_RUBY_RACTOR_H /* Ruby 3.0+ */
38
37
  extern MWRAP_TSD void * __attribute__((weak)) ruby_current_ec;
@@ -45,6 +44,7 @@ extern size_t __attribute__((weak)) rb_gc_count(void);
45
44
  extern VALUE __attribute__((weak)) rb_cObject;
46
45
  extern VALUE __attribute__((weak)) rb_eTypeError;
47
46
  extern VALUE __attribute__((weak)) rb_yield(VALUE);
47
+ int __attribute__((weak)) ruby_thread_has_gvl_p(void);
48
48
 
49
49
  static size_t total_bytes_inc, total_bytes_dec;
50
50
 
@@ -64,11 +64,6 @@ enum {
64
64
 
65
65
  #define IS_HEAP_PAGE_BODY ((struct src_loc *)-1)
66
66
 
67
- int __attribute__((weak)) ruby_thread_has_gvl_p(void)
68
- {
69
- return 0;
70
- }
71
-
72
67
  #ifdef __FreeBSD__
73
68
  void *__malloc(size_t);
74
69
  void __free(void *);
@@ -238,8 +233,8 @@ static char *int2str(int num, char *dst, size_t * size)
238
233
  */
239
234
  static int has_ec_p(void)
240
235
  {
241
- return (ruby_thread_has_gvl_p() && ruby_current_vm_ptr &&
242
- ruby_current_ec);
236
+ return ruby_thread_has_gvl_p && ruby_thread_has_gvl_p() &&
237
+ ruby_current_vm_ptr && ruby_current_ec;
243
238
  }
244
239
 
245
240
  struct acc {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.0.1.g867b
5
5
  platform: ruby
6
6
  authors:
7
7
  - mwrap hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-22 00:00:00.000000000 Z
11
+ date: 2022-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -77,9 +77,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ">"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 1.3.1
83
83
  requirements: []
84
84
  rubygems_version: 3.0.2
85
85
  signing_key: