From: normalperson@... Date: 2015-06-16T00:29:21+00:00 Subject: [ruby-core:69595] [Ruby trunk - Feature #11263] [Open] [PATCH] ext/socket/ancdata.c (bsock_recvmsg_internal): reduce stack use Issue #11263 has been reported by Eric Wong. ---------------------------------------- Feature #11263: [PATCH] ext/socket/ancdata.c (bsock_recvmsg_internal): reduce stack use https://bugs.ruby-lang.org/issues/11263 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- Using 8K stack is probably too much. As reference, ALLOCV falls back to heap allocation at a mere 1K. Since bsock_recvmsg_internal is a function which will always allocate and can trigger GC, it is in our best interest to minimize stack usage to avoid scanning 8K of stack on GC. ---Files-------------------------------- 0001-ext-socket-ancdata.c-bsock_recvmsg_internal-reduce-s.patch (2.98 KB) -- https://bugs.ruby-lang.org/