[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61210] Re: RFC: some --with-static-linked-ext fixes

From: Eric Wong <normalperson@...>
Date: 2014-03-02 01:58:42 UTC
List: ruby-core #61210
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> load.c seems necessary, please commit it only.
> Others seem unnecessary.

You're right; it took me a while of testing to get it :x
r45232

Now, how to run the test suite using static-linked-ext...

How about introducing a new internal API:

	rb_require_hook_register("foo", Init_foo);

So any calls to `require "foo"' call Init_foo lazily?
It would make it easier to have consistent code between
static/dynamic-ext builds of Ruby.

In This Thread

Prev Next