aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in (DTRACE): clear this when `dtrace -l` fails.naruse2010-01-041-0/+6
| | | | | | | Note that current FreeBSD needs privilege to call it; so to use DTrace on FreeBSD, you should run configure as root. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: added UNLIKELY to probes for optimization.yugui2010-01-041-0/+8
| | | | | | | | * vm.c: ditto. * thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (TRACING_MODEL): follow yugui's previous changes.usa2010-01-041-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (InterlockedExchangePointer): old SDK support.usa2010-01-041-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * trace.h: new file. wraps tracing mechanisms.yugui2010-01-031-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defs/dtrace.d: new file. defined a dtrace provider "ruby". * include/ruby/ruby.h (LIKELY): moved from vm.c. (UNLIKELY): ditto. (OBJSETUP): probe "object-create". (RUBY_EVENT_RESCUE): new event. * vm_exec.c (DEBUG_ENTER_INSN): embeded a probe insn-entry into it. (DEBUG_END_INSN): insn-return. * vm.c (LIKELY): moved into ruby.h. (UNLIKELY): ditto. (Init_BareVM): embeded a probe "raise" into it. * variable.c (rb_class2name_without_alloc): new utility function. * tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs dtrace.d if necessary. * thread_pthread.c (add_signal_thread_list): probe "raise". (rb_thread_create_timer_thread): ditto. * thread.c (rb_thread_schedule_rec): probes "thread-enter" and "thread-leave", (thread_start_func_2): ditto. (thread_cleanup_func): probe "thread-term" * lib/mkmf.rb: supports dtrace postprocessor on making an extension. * iseq.c (rb_vm_insn_name): new utility function. (rb_vm_insn_len): ditto. * insns.def (hook): probes "method-etnry", "method-return", "line", and "rescue". * compile.c (iseq_compile_each): adds a trace op for "rescue" probe. * gc.c (garbage_collect): probes "gc-begin" and "gc-end". (obj_free): probe "object-free" (garbage_collect_with_gvl): probe "raise" (negative_size_allocation_error): ditto. (rb_memerror): ditto. * eval.c (rb_rescue2): probe "rescue" (rb_longjmp): probe "raise" * ext/probe/probe.c: new extension for application defined probes. * ext/probe/extconf.rb: ditto. * configure.in (--with-tracing-model): new option to choose a tracing mechanism. (DTRACE): new substitution. name of dtrace(1). (RUBY_TRACING_MODEL): new substitution. (DTRACE_OBJ): ditto. (MINIDTRACE_OBJ): ditto. (GOLFDTRACE_OBJ): ditto. (LIBRUBY_DTRACE_OBJ): ditto. (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on the system needs postprocessing. (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace supports USDT. * Makefile.in: (DTRACE): new variable. name of dtrace(1). (TRACING_MODEL): new variable. name of the chosen tracing mechanism. (DTRACE_OBJ): same as the one in configure.in. (MINIDTRACE_OBJ): ditto. (GOLFDTRACE_OBJ): ditto. (LIBRUBY_DTRACE_OBJ): ditto. (CPPOUTFILE): new substitution. necessary for generating dtrace.d (trace_none.h): new target for TRACING_MODEL=none (RUBY_H_INCLUDES): appended a header for tracing. (distclean-local): also removes preprocessed version of dtrace.d ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs postprocessing. ($(PROGRAM)): ditto. (golf): ditto. (miniruby): ditto. ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed verson of defs/dtrace.d. generated if necessary. ($(arch_hdrdir)/ruby/trace_dtrace.h): new target. definition of probes. ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs postprocessing. ($(DTRACE_OBJ)): ditto. ($(MINIDTRACE_OBJ)): ditto. ($(GOLFDTRACE_OBJ)): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/text.rb: String no longer has #each.yugui2010-01-031-0/+5
| | | | | | Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#inspect):akr2010-01-021-0/+5
| | | | | | | implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::DNS#initialize): new option :nameserver_port.akr2010-01-021-0/+12
| | | | | | | | | | | | | | (Resolv::DNS#each_resource): pass port number. (Resolv::DNS#make_requester): ditto. (Resolv::DNS::Config#lazy_initialize): initialize @nameserver_port instead of @nameserver. (Resolv::DNS::Config#single?): return port number addition to the nameserver. (Resolv::DNS::Config#generate_timeouts): use @nameserver_port. (Resolv::DNS::Config#resolv): yield port number. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (initialize_regexp): allow leadingnaruse2010-01-011-0/+8
| | | | | | | | | and trailing white space, and forbid extra characters on another lines. [ruby-core:26223] RFC 3986 Appendix C. Delimiting a URI in Context draft-duerst-iri-bis-07 7.2. Web Address processing git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (URI#normalize!): normalize case ofnaruse2010-01-011-0/+5
| | | | | | scheme. [ruby-core:27309] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* I think it's Friday today.knu2009-12-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppressknu2009-12-311-0/+5
| | | | | | | | compiler warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.akr2009-12-311-0/+14
| | | | | | | | | | | | | | | | * lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby. * test/ruby/envutil.rb: ditto. * benchmark/report.rb: ditto. * benchmark/runc.rb: ditto. * tool/eval.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h: include addrinfo.h only when using our ownusa2009-12-311-0/+5
| | | | | | | | getaddrinfo.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (save_redirect_fd): consider EBADF that the fd is not used.usa2009-12-311-0/+5
| | | | | | | [ruby-dev:39938] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/raddrinfo.c (addrinfo_type): typed.nobu2009-12-301-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: fix for wide-getaddrinfo option.nobu2009-12-301-0/+7
| | | | | | | | * ext/socket/addrinfo.c: rename {addr,name}info functions to ensure those are used on darwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2009-12-301-9/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (native_thread_destroy): decreased the probability ofusa2009-12-301-0/+6
| | | | | | | | using the interrupt event in the thread termination. see [ruby-core:27199]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_win32.c (w32_error): should report the function.usa2009-12-301-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: fix for extstatic.nobu2009-12-301-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (RREGEXP_SRC_END): added.naruse2009-12-301-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/defines.h (INFINITY): this is float.naruse2009-12-301-0/+10
| | | | | | | | | | * include/ruby/defines.h (NAN): ditto. * numericc.c (rb_infinity): change content as float. * numericc.c (rb_nan): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb (push_all_highest_version_gems_on_load_path):nobu2009-12-301-1/+4
| | | | | | | simplified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/command_manager.rb (Gem#load_and_instantiate):nobu2009-12-301-1/+4
| | | | | | | rescue only NameError from const_get. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/source_index.rb (Gem#load_specification): don't usenobu2009-12-301-1/+6
| | | | | | | | | RUBY_VERSION to branch. * lib/rubygems/validator.rb (Gem::TestRunner, Gem#alien): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems.rb: Kernel#gem is already defined, and workaroundnobu2009-12-301-0/+5
| | | | | | | for home directory and custom_require are no longer needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add Float::INFINITY and Float::NAN.naruse2009-12-291-0/+20
| | | | | | | | | | | | | | | | | | | | * numeric.c (Init_Numeric): Add Float::INFINITY and Float::NAN. [ruby-dev:1657] [ruby-dev:4760] [ruby-list:7023] [ruby-list:46690] [ruby-core:26632] [ruby-talk:41352] [ruby-talk:203333] * include/ruby/defines.h (INFINITY): defined. * include/ruby/defines.h (NAN): defined. * include/ruby/util.h (ruby_div0): removed. * numeric.c (fix_pow): use INFINITY and NAN instead of ruby_div0(1.0). * marshal.c (r_object0): ditto. * bignum.c (big_fdiv): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):nobu2009-12-291-0/+6
| | | | | | | | any number spaces can be placed between equal-sign and the value. patch from Ed Howland in [ruby-core:27345]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): force to inherit standard I/O handles.usa2009-12-281-0/+6
| | | | | | | | this change fixes [ruby-core:27273], but other side effects might exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb: added tests for taintness/untrustness nahi2009-12-281-0/+5
| | | | | | | propagation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/occur2.rb: reimplemented in modern style. [ruby-dev:39927].yugui2009-12-281-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/install-sh: correction by Hiro Asari.yugui2009-12-281-0/+5
| | | | | | https://gist.github.com/264558/58ad1cae45cde49600bbb39286af2aae23e639d5 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/install-sh: wrote the intention. [ruby-dev:39928]yugui2009-12-281-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (foleparam_initialize): add foleparam_initializesuke2009-12-271-0/+8
| | | | | | | | | | to check argument of WIN32OLE_PARAM.new * test/win32ole/test_win32ole_param.rb (test_s_new): add some assertion to test WIN32OLE_PARAM.new git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb (install?(:local, :comm, :bin, :'bin-comm')):yugui2009-12-271-0/+6
| | | | | | | Makes it vim friendly. __END__ in a heredoc is confusing with the script end for vim. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/occur2.rb: have been broken. fixed for Ruby 1.9 feature.yugui2009-12-271-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/generic.rb (eql?): Check the class of the compared object.marcandre2009-12-241-0/+5
| | | | | | Based on a patch by Peter McLain [ruby-core:27019] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regexec.c (match_at): follow enclen's change.naruse2009-12-241-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (marshal_dump/load): dump & load instance variables by ↵marcandre2009-12-241-0/+5
| | | | | | default [ruby-core:24211] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/object.c (rb_obj_cmp): Default <=> operator returns 0 if objects are ↵marcandre2009-12-241-0/+5
| | | | | | == [ruby-core:24063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):nobu2009-12-231-0/+5
| | | | | | | always must be binary mode. c.f. Bug#2341 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (Init_Encoding): undef Encoding.new becausenaruse2009-12-211-0/+8
| | | | | | | | | a class which is rb_undef_alloc-func-ed can't call new method. [ruby-dev:39862] * vm.c (Init_VM): undef RubyVM.new and RubyVM::Env.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regcomp.c (optimize_node_left): include equal on the condition of for-loop.naruse2009-12-211-0/+5
| | | | | | This bug also affects original Oniguruma. [ruby-core:27247] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regcomp.c (print_enc_string): follow enclen's change.naruse2009-12-211-0/+10
| | | | | | | | | | * regcomp.c (onig_print_compiled_byte_code): ditto. * regcomp.c (onig_print_compiled_byte_code): change prototype. * regint.c (onig_print_compiled_byte_code): comment out. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c: BasicObject#initialize accepts any number of arguments ↵marcandre2009-12-201-0/+5
| | | | | | [ruby-core:27080] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_iterate): remove SEGV (retry).mame2009-12-201-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_iterate): remove SEGV (use the original patch).mame2009-12-201-0/+5
| | | | | | [ruby-dev:39874] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_iterate): pass current block when the argument bl_procmame2009-12-201-0/+11
| | | | | | | | | | | | is NULL. This behavior can be used to make enumerator faster [ruby-dev:39874] * enumerator.c (enumerator_each): pass current block directly instead of trampoline block (enumerator_each_i). * io.c (argf_each_line, argf_each_byte, argf_each_char): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gem_prelude.rb (Kernel#gem): should make gem private. a patchmatz2009-12-191-0/+5
| | | | | | from Sho Hashimoto in [ruby-dev:39838]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e