[#64517] Fw: Re: Ruby and Rails to become Apache Incubator Project — Tetsuya Kitahata <[email protected]>

What do you think? >> Ruby developers

13 messages 2014/08/23

[#64615] [ruby-trunk - Feature #10181] [Open] New method File.openat() — oss-ruby-lang@...

Issue #10181 has been reported by Technorama Ltd..

10 messages 2014/08/28
[#64616] Re: [ruby-trunk - Feature #10181] [Open] New method File.openat() — Eric Wong <normalperson@...> 2014/08/28

I like this feature.

[#64671] Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...>

Why this fix solve your problem?

9 messages 2014/08/30
[#64672] Re: Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...> 2014/08/30

(2014/08/30 8:50), SASADA Koichi wrote:

[ruby-core:64178] Re: [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object

From: Eric Wong <normalperson@...>
Date: 2014-08-03 22:48:54 UTC
List: ruby-core #64178
I tried making rb_gc_register_address work transparently but wasn't able
to measure any difference with unicorn.  unicorn uses a few global
const strings for common HTTP headers, but maybe not enough to matter
for this patch.

This patch is probably pointless, but in case somebody else wants to try
and show it makes a difference, it is here:

--- a/gc.c
+++ b/gc.c
@@ -5154,13 +5154,15 @@ rb_gc_register_mark_object(VALUE obj)
 void
 rb_gc_register_address(VALUE *addr)
 {
-    rb_objspace_t *objspace = &rb_objspace;
-    struct gc_list *tmp;
-
-    tmp = ALLOC(struct gc_list);
-    tmp->next = global_list;
-    tmp->varptr = addr;
-    global_list = tmp;
+    if (OBJ_FROZEN(*addr)) {
+	rb_gc_register_mark_object(*addr);
+    } else {
+	rb_objspace_t *objspace = &rb_objspace;
+	struct gc_list *tmp = ALLOC(struct gc_list);
+	tmp->next = global_list;
+	tmp->varptr = addr;
+	global_list = tmp;
+    }
 }
 
 void

In This Thread