<internal> instead of prelude.rb on stack trace

e$B1sF#$G$9!#e(B

Mutex#synchronize e$B$N%V%m%C%/$NCf$J$I$GNc30$,Ej$2$i$l$k$H!"e(B
e$B%9%?%C%/%H%l!<%9$Ke(B prelude.rb e$B$,=P$F$-$^$9!#e(B

$ ruby19 -e ‘Mutex.new.synchronize { raise }’
-e:1:in block in <main>': unhandled exception from prelude.rb:8:insynchronize’
from -e:1:in `’

e$BAH$9~$$Ne(B prelude.rb
e$B$rCN$i$J$$0lHL%f!<%6$O:.Mp$9$k$H;W$$$^$9!#e(B
e$B$J$I!“L@$i$+$KIaDL$N%U%!%$%k$G$O$J$$$H$o$+$kL>A0$Ke(B
e$B$7$?J}$,$$$$$H;W$&$N$G$9$,!”$I$&$G$7$g$&$+!#e(B

Index: tool/compile_prelude.rb

— tool/compile_prelude.rb (revision 19089)
+++ tool/compile_prelude.rb (working copy)
@@ -78,7 +78,7 @@
% lines_list.each_with_index {|(setup_lines, lines), i|
rb_iseq_eval(rb_iseq_compile(
rb_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1),

  • rb_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1),
  • rb_str_new2(""),
    INT2FIX(<%=1-setup_lines.length%>)));

% }

e$B1sF#$G$9!#e(B

2008/09/03 21:04 Yusuke ENDOH [email protected]:

e$B$7$?J}$,$$$$$H;W$&$N$G$9$,!“$I$&$G$7$g$&$+!#e(B
e$BFC$KH?BP0U8+$O$J$$$h$&$J$N$G!”%3%_%C%H$7$^$7$?!#e(B

IRC e$B$GAjCL$7$?$H$3$m!"0l1~85%U%!%$%k$,<1JL$G$-$kJ}$,$$$$$He(B
e$B$$$&$3$H$Ge(B internal:prelude e$B$H$+e(B internal:gem_prelude
e$B$H$+e(B
e$B=P$k$h$&$K$7$F$*$-$^$7$?!#e(B

$ ./ruby -e ‘Mutex.new.synchronize { raise }’
-e:1:in block in <main>': unhandled exception from <internal:prelude>:8:in synchronize’
from -e:1:in `’