[#10853] Why limit class def to a constant or colon node? — Charles Oliver Nutter <charles.nutter@...>

Is there a historical reason why I can't do something like these:

12 messages 2007/04/03

[#10933] Cannot build with extra library path if previous version already installed — <noreply@...>

Bugs item #10140, was opened at 2007-04-16 17:32

10 messages 2007/04/16
[#10934] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — nobu@... 2007/04/16

Hi,

[#10960] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — "Michal Suchanek" <hramrach@...> 2007/04/18

On 4/16/07, nobu@ruby-lang.org <nobu@ruby-lang.org> wrote:

[#10967] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — Nobuyoshi Nakada <nobu@...> 2007/04/19

Hi,

[#10970] Re: [ ruby-Bugs-10140 ] Cannot build with extra library path if previous version already installed — "Michal Suchanek" <hramrach@...> 2007/04/19

On 4/19/07, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:> Hi,>> At Wed, 18 Apr 2007 20:21:44 +0900,> Michal Suchanek wrote in [ruby-core:10960]:> > Yes. And this should also apply to extensions. The mkmf tests are now> > fine but the extension is linked with -L/sw/lib before -L../..>> Indeed.>>> Index: configure.in> ===================================================================> --- configure.in (revision 12191)> +++ configure.in (working copy)> @@ -1385,5 +1385,4 @@ if test "$enable_rpath" = yes; then> fi>> -LDFLAGS="-L. $LDFLAGS"> AC_SUBST(ARCHFILE)>This would break the previous fix so I did not even try to apply this ^

[#11003] miniruby loads extensions from already installed ruby — <noreply@...>

Bugs item #10303, was opened at 2007-04-23 10:44

10 messages 2007/04/23

[#11025] gsub with backslash characters in replacement string — "Adam Bozanich" <adam.boz@...>

Hello, spotted this one the other day:

10 messages 2007/04/26

Re: Ruby Memory Layout

From: Eric Hodel <drbrain@...7.net>
Date: 2007-04-17 19:13:51 UTC
List: ruby-core #10946
On Apr 14, 2007, at 09:55, Charles Thornton wrote:

> Does anyone have a chart or text that shows how
> Ruby Memory is used.
> I am trying to work through the Machine translate
> Garbage Collection Chapter.
>
> But I can not translate the text in the diagrams.
>
> It seems to be  Text, Stack, Machine Stack, Heap, ....
>
> Any help here would be appreciated.

I haven't seen these diagrams, but I can describe the memory layout.

Ruby uses the regular C stack for its stack.

Inside the C heap is a pointer to ruby's heap.

Ruby's heap is a C array of pointers to struct heaps_slot.

Each struct heaps_slot consists of a C array of struct RVALUEs.

struct RVALUE is in gc.c, and is some flags and a union of the  
various C object structs.

If a struct RVALUE contains a ruby String, it contains a pointer into  
the C heap with a C char * containing the string contents.  If the  
struct RVALUE is a ruby Array, it contains a pointer into the C heap  
with the C VALUE * holding pointers back to a slot in Ruby's heap.   
(And so-on for the rest of the C object types.)

Also, note that the GC walks the stack looking for pointers into  
ruby's heaps_slots, I'm guessing this is important to the diagram.

In This Thread

Prev Next