Граф коммитов

9270 Коммитов

Автор SHA1 Сообщение Дата
nobu 1c03862049 * eval_load.c (rb_require_safe, ruby_init_ext): load with ruby level
cfp.  [ruby-core:10779]

* eval_intern.h, vm.c (rb_vm_call_cfunc): new function to call a
  function with ruby level cfp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-18 08:02:30 +00:00
nobu 942a54302d * parse.y (yycompile): disable trace while creating ruby_debug_lines.
[ruby-talk:253586]

* thread.c (ruby_suppress_tracing): new function to call a function
  with suppressing trace.

* lib/debug.rb, lib/tracer.rb: for YARV.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-18 07:55:45 +00:00
nobu 31345380ac * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occured
in at_exit blocks.  [ruby-core:11263]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-18 04:52:59 +00:00
ko1 8adc4541ff * vm.c (env_mark): fix to mark block.proc.
* vm.c (th_make_proc_from_block): set created proc to block->proc.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 17:50:56 +00:00
ko1 d220634bb7 * vm_dump.c (vm_stack_dump_raw): hide VM stack trace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 17:47:35 +00:00
ko1 4471bf2356 * signal.c (sigsegv): clear gc_stress flag on SEGV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 17:46:25 +00:00
nobu c72ecb25ad * variable.c (rb_global_entry, rb_f_untrace_var, rb_alias_variable,
rb_generic_ivar_table, generic_ivar_get, generic_ivar_set,
  generic_ivar_defined, generic_ivar_remove, rb_mark_generic_ivar,
  rb_free_generic_ivar, rb_copy_generic_ivar,
  rb_obj_instance_variables): suppress warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 16:12:32 +00:00
nobu 3dc070e90e * variable.c (rb_path2class): get rid of dangling pointer caused by
optimized out value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 15:56:36 +00:00
akr 7e48040b3a fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 02:30:13 +00:00
akr a03d4a0635 * eval.c (rb_method_missing): avoid an warning "too many arguments
for format string" on "./ruby -ve 'def m() super end; m'".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-17 02:12:14 +00:00
akr ccbdd90865 * gc.c (garbage_collect): re-introduce ruby_current_node marking code.
[ruby-dev:31005]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 13:45:30 +00:00
akr 38f9878b59 fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 13:30:58 +00:00
akr c4d2965fb6 * gc.c (gc_sweep): re-introduce heap extension strategy change.
[ruby-dev:31005]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-16 12:39:35 +00:00
akr 8092d0bd87 fix trap's doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 14:33:59 +00:00
akr afa74d6cae * .gdbinit: new file to ease debugging using gdb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:59:45 +00:00
akr 787f96eb97 * signal.c (default_handler): func argument removed.
(trap_handler): support SYSTEM_DEFAULT.  call default_handler
  internally.
  (sig_trap): don't call default_handler.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:38:32 +00:00
nobu a96b6f0604 * common.mk (realclean): separate local and ext.
* ext/extmk.rb: not remove unrelated directories.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:31:54 +00:00
akr 868e180cef add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 12:14:21 +00:00
akr a30fe695e6 * keywords: enclose C code in declaration section by %{ and %}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 11:50:45 +00:00
akr cebc9bb19d * signal.c (trap_handler): trap("SIGSEGV", "DEFAULT") may cause wrong
trap error because SIG_DFL may be zero.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 09:58:10 +00:00
akr e3dd9a78db re-introduce RUBY_GC_STRESS test removed by YARV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 08:38:58 +00:00
ko1 5cbefb96b9 * insns.def(setconstant, toregexp): fix to mark object correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 06:55:36 +00:00
ko1 afb1901848 * hash.c: exchange semantics of Hash#each and Hash#each_pair.
pointed out by [ruby-dev:30997].
* test/ruby/test_iterator.rb: ditto.
* test/ruby/test_yield.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 04:25:07 +00:00
ko1 7307d38c4f * test/ruby/test_iterator.rb: remove debug code (GC.stress=true).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:37:49 +00:00
ko1 7567fbf080 * vm.c (th_yield_setup_args): |v| should work as |v,|.
ex) def m;yield 1, 2; end; m{|v| p v} #=> 1
* parse.y: apply above change for "for" statement.
* test/ruby/test_assignment.rb: ditto
* test/ruby/test_basicinstructions.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* test/ruby/test_yield.rb: ditto.
* compile.c (iseq_compile_each): fix debug.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:27:33 +00:00
ko1 70df6311af * eval.c (ruby_finalize_1): rb_thread_t#errinfo should be clear with
Qnil.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:22:51 +00:00
ko1 31ac946975 * cont.c (rb_cont_call): forbid cross fiber continuation call.
* test/ruby/test_fiber.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:20:13 +00:00
ko1 f84c8cb190 * sample/test.rb: fix to show line information whether test succeeds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 03:18:12 +00:00
akr d3be3d7102 fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 08:37:13 +00:00
akr 3cd5af52e9 * eval_load.c (Init_load): delay allocating an array for rb_load_path
to avoid GC problem in very early stage.
  (RUBY_GC_STRESS causes GC in such stage.)

* variable.c (rb_gc_mark_global_tbl): rb_global_tbl may be 0 in
  very early stage.

* thread.c (thread_cleanup_func) [IA64]: clear register stack position.
  (thread_start_func_2) [IA64]: record the beginning of register
  stack using extra argument.
  (rb_gc_save_machine_context) [IA64]: record the end of register
  stack.

* gc.c [IA64] (SET_STACK_END): record the end of register stack.
  (garbage_collect) [IA64]: use recorded register stack area for
  GC marking.
  (yarv_machine_stack_mark) [IA64]: GC mark from the register stack
  area.

* yarvcore.c [IA64] (rb_gc_register_stack_start): defined.
  (Init_VM): store th->self on stack to fix GC problem.
  (Init_yarv) [IA64]: initialize the beginning of register stack.

* yarvcore.h (struct rb_thread_struct) [IA64]: new members for
  register stack area.

* thread_pthread.ci (thread_start_func_1) [IA64]: call
  thread_start_func_2 with the end of register stack.

* cont.c (struct rb_context_struct) [IA64]: new members for register
  stack area.
  (cont_mark) [IA64]: GC mark from register stack area.
  (cont_free) [IA64]: free saved register stack.
  (cont_save_machine_stack) [IA64]: record the position and contents
  of the register stack.
  (cont_capture): store cont->self on stack to fix GC problem.
  (cont_restore_1) [IA64]: restore the register stack.
  [IA64] (register_stack_extend): new function.
  (cont_restore_0) [IA64]: call register_stack_extend instead of
  cont_restore_1.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 08:35:20 +00:00
nobu 0dc3a071d3 * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
extensions.  [ruby-dev:30972]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 08:08:13 +00:00
eban e948c70e06 * 2007-06-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 06:38:07 +00:00
akr 4ba1c80b9a * lib/securerandom.rb: documente updated.
suggested by NaHi.  [ruby-dev:30966]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-14 05:40:16 +00:00
matz 68c6bb997d * gc.c (garbage_collect): update IA64 register stack code.
[ruby-dev:30971]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-13 13:42:02 +00:00
matz 89c2418467 * parse.y (call_args): no allow splat after assocs. takes
consistency over compatibility.

* parse.y (call_args2): ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-13 13:25:39 +00:00
nobu 0e62875433 * configure.in (darwin): prohibit loading extension libraries to
miniruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 21:04:07 +00:00
shyouhei 1cc502b9f4 resurrection of improperly deleted ChangeLog entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 07:55:25 +00:00
nobu 13349fd176 * lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
use it.  [ruby-core:10909]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 05:52:19 +00:00
nobu 8cc8c9f9a1 * lib/mkmf.rb (find_header): use header names in the message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 05:43:06 +00:00
usa 3cf184ce6f * 2007-06-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 04:09:12 +00:00
ryan 8964a01bae Fixed [UG]ID::eid=. Fixes bug # 10370
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 02:32:28 +00:00
ryan 73d64b9811 Fixed typo in code. Fixes bug #10420
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-12 00:38:57 +00:00
akr 54a816cfdf fix wrong date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-11 13:02:30 +00:00
nobu 0c57bf4b61 * ext/probeprofiler/probeprofiler.c: clean warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 09:35:42 +00:00
nobu 2cb9ebd55d * missing/isinf.c, missing/dup2.c, missing/strtod.c, missing/x68.c,
missing/alloca.c: use "ruby/config.h".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 09:30:55 +00:00
nobu 79a74f5ec1 * instruby.rb (install_recursive): should check parent directoris of
the destination.  [ruby-dev:30947]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 08:47:49 +00:00
nobu 30dbd2a6ba * parse.y (do_block, brace_block): fix line numbers. [ruby-dev:30831]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 07:58:09 +00:00
nobu 5dc9bf105a * instruby.rb (ext-comm): make header directory first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 07:55:49 +00:00
nobu 4d2421d58b * instruby.rb (install_recursive): add :glob option rather than
using FNM_DOTMACH.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 07:34:51 +00:00
usa 8e8a3a07b1 * test/ruby/test_beginendblock.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-10 07:10:56 +00:00