File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
java/org/truffleruby/core Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Bug fixes:
9
9
Compatibility:
10
10
11
11
* Add ` Exception#detailed_message ` method (#3257 , @andrykonchin ).
12
+ * Add ` rb_gc_mark_movable ` function (@andrykonchin ).
12
13
13
14
Performance:
14
15
Original file line number Diff line number Diff line change 1
- 1
1
+ 2
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ void rb_gc_mark(VALUE ptr) {
34
34
polyglot_invoke (RUBY_CEXT , "rb_gc_mark" , ptr );
35
35
}
36
36
37
+ void rb_gc_mark_movable (VALUE obj ) {
38
+ rb_gc_mark (obj );
39
+ }
40
+
37
41
void rb_gc_mark_maybe (VALUE ptr ) {
38
42
if (!RB_TYPE_P (ptr , T_NONE )) {
39
43
polyglot_invoke (RUBY_CEXT , "rb_gc_mark" , ptr );
Original file line number Diff line number Diff line change 27
27
* Since we are not running on a VM that allows us to add custom mark functions to our garbage collector we keep objects
28
28
* alive in 2 ways. Any object converted to a native handle can be kept alive by executing a
29
29
* {@link MarkingServiceNodes.KeepAliveNode}. This will add the object to two lists, a list of all objects converted to
30
- * native during this call to a C extension function which will be popped when the we return to Ruby code, and a fixed
31
- * sized list of objects converted to native handles. When the latter of these two lists is full all mark functions will
32
- * be run the next time an object is added.
30
+ * native during this call to a C extension function which will be popped when we return to Ruby code, and a fixed-sized
31
+ * list of objects converted to native handles. When the latter of these two lists is full all mark functions will be
32
+ * run the next time an object is added.
33
33
*
34
34
* Marker references only keep a week reference to their owning object to ensure they don't themselves stop the object
35
35
* from being garbage collected. */
You can’t perform that action at this time.
0 commit comments