[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>

I was just playing around with Hash#hash and discovered that you can't use a

13 messages 2003/09/23

Re: [BUG] Additional info regarding ruby-talk:66239

From: ts <decoux@...>
Date: 2003-09-04 12:38:08 UTC
List: ruby-core #1511
>>>>> "t" == ts  <decoux@moulon.inra.fr> writes:

t>  Now rb_gc_mark_frame(frame) will mark frame->argv, but if frame->argv is
t>  also in the copied stack, ruby must mark ADJ(frame->argv) rather than 
t>  frame->argv, no ?

 If I've well understood frame->argv is a value which is in the stack of
 mark_locations_array() (i.e. frame->argv is in (%esp, %esp+end) for
 mark_locations_array).

 Because is_pointer_to_heap() is inlined, gcc must have the
 possibility to store heaps in this address, and this can explain the
 strange comportment

 ruby don't have a problem when this incorrect value don't make reference
 to the stack of mark_locations_array


Guy Decoux





In This Thread

Prev Next