teptris 0.3.6.2 → 0.3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/teptris_ext/materialize.c +13 -0
- data/lib/teptris/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c78dea6cf66de177025b3ca3ced1b166a12909487312794392a4bf9b7c6fa58
|
|
4
|
+
data.tar.gz: 21de9b146bca1fa22df6c9e6f58b6d2c813211d56089287520ab93040558d723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55b149ca222277b998288571eb2f1a265342a64b9fca905bdfbff9f022cda772108f9ea52d78f5b583a32008f14c919d28f24d232a03fe3de279bde3084a56a3
|
|
7
|
+
data.tar.gz: dc89589fa986b2f439775fe5aa0894974315c15f0784faf2775d2d44a20d05dda7dca3485b79bec295b7702e89e86de798fb725d8929a74645b61e494983b541
|
|
@@ -1345,4 +1345,17 @@ void Init_teptris_ext(void) {
|
|
|
1345
1345
|
id_to_s = rb_intern("to_s");
|
|
1346
1346
|
id_to_i = rb_intern("to_i");
|
|
1347
1347
|
id_nsec = rb_intern("nsec");
|
|
1348
|
+
/* Compaction safety: class objects stay reachable through their
|
|
1349
|
+
* constants (never swept), but GC.compact MOVES them — an
|
|
1350
|
+
* unregistered static slot then holds a stale RVALUE and the next
|
|
1351
|
+
* rb_raise/rb_funcall through it faults (the windows ruby-4.0
|
|
1352
|
+
* segfault, teptris-ruby#161: the suite's GC.compact spec moved
|
|
1353
|
+
* Teptris::Error out from under these slots). rb_gc_register_address
|
|
1354
|
+
* roots the SLOT, so compaction updates what it points at. */
|
|
1355
|
+
rb_gc_register_address(&eError);
|
|
1356
|
+
rb_gc_register_address(&eParseError);
|
|
1357
|
+
rb_gc_register_address(&cDate);
|
|
1358
|
+
rb_gc_register_address(&cDoc);
|
|
1359
|
+
rb_gc_register_address(&cLazyOwner);
|
|
1360
|
+
rb_gc_register_address(&cLazyValue);
|
|
1348
1361
|
}
|
data/lib/teptris/version.rb
CHANGED