summaryrefslogtreecommitdiff
path: root/ChangeLog
AgeCommit message (Collapse)Author
2014-11-27* vm_args.c: fix backtrace location for keyword related exceptions.ko1
For example, the following program def foo(k1: 1); end # line 1 foo(k2: 2) # line 2 causes "unknown keyword: k2 (ArgumentError)". Before this patch, the backtrace location is only line 2. However, error should be located at line 1 (over line 2 in stack trace). This patch fix this problem. * class.c (rb_keyword_error_new): separate exception creation logic from rb_keyword_error(), to use in vm_args.c. * vm_insnhelper.c (rb_arg_error_new): rename to rb_arity_error_new(). * vm_args.c (argument_arity_error): rename to argument_arity_error(). * vm_args.c (arugment_kw_error): added to fix backtrace. * test/ruby/test_keyword.rb: add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27common.mk: prelude.c by BASERUBYnobu
* common.mk (prelude.c): no longer depends on miniruby, since not depending on rbconfig.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27common.mk: no preludes for minirubynobu
* common.mk (miniprelude.c): miniruby needs no preludes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27prelude.c.tmpl: no preludes, no code.nobu
* template/prelude.c.tmpl: no code if no prelude code is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27* gc.c (objspace_malloc_increase): enable lazy sweep on GC by malloc()ko1
(malloc_increase) to make GC incrementally. This change can increase memory consumption. Report us if you find any problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27* time.c (time_s_mkutc): [DOC] Time.utc's 10 arguments formakr
doesn't examine wday, yday, isdst and tz. (time_s_mktime): [DOC] Time.mktime's 10 arguments form doesn't examine wday, yday and tz. Suggested by naruse. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27iseq.c (iseq_data_to_ary): add missing GC guardnormal
It seems possible for a compiler to optimize away nbody because we only access it via RARRAY_AREF and RARRAY_LEN macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-27* vm_core.h: add rb_thread_t::local_storage_recursive_hashko1
to speed up Thread#[:__recursive_key__] access. [Bug #10511] * thread.c (threadptr_local_aref): add fast path for :__recursive_data__. * thread.c (threadptr_recursive_hash, threadptr_recursive_hash_set): add special accessor for recursive hash. * cont.c: store/restore local_storage_recursive_hash. * vm.c: init and mark local_storage_recursive_hash. * vm_trace.c (rb_threadptr_exec_event_hooks_orig): clear and restore local_storage_recursive_hash directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26compile.c (iseq_calc_param_size): hoist out of iseq_set_argumentsnormal
This will be reused for iseq loading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26ruby.h: export keyword argument functionsnobu
* include/ruby/ruby.h (rb_get_kwargs, rb_extract_keywords): export keyword argument functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26* test/inlinetest.rb: removed unused test helper.hsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26 * ext/continuation/continuation.c (Init_continuation): obsolete callcc.tarui
first step of [Feature #10548]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26Fix typosorah
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26* test/ruby/test_gc.rb (test_latest_gc_info): do test separatelyko1
to avoid mysterious behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26win32.c: for non-standard consolenobu
* win32/win32.c (constat_reset): do nothing on non-standard console emurators. [ruby-core:66471] [Bug #10546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26* lib/tsort.rb: Returns an enumerator if no block is given.akr
[ruby-core:66270] [Feature #10508] Proposed by Andrey Savchenko. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26parse.y: fix invalid keyword argumentnobu
* parse.y (f_label, f_kw, formal_argument_gen): ignore invalid formal argument in keyword argument definition. [ruby-dev:48742] [Bug #10545] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26* compile.c (iseq_set_sequence): use "nop" insn instead ofko1
"jump to next insn". https://bugs.ruby-lang.org/issues/8543#change-50085 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-26iseq.c (iseq_s_compile_file): close IO when donenormal
This will prevent some leaked FD warnings in future tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* common.mk: encdb.h and transdb.h depends on $(PREP).akr
So prebuild files for them in tarball are useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* tool/make-snapshot: Don't generate enc/trans/newline.c in tarball.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* common.mk (prereq): Don't depends on prelude.c and golf_prelude.c.akr
Since they depend on $(PREP) which is miniruby, they are rebuilt after miniruby is built, even if tarball contains them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* template/prelude.c.tmpl: Don't expand RbConfig::Config[...].akr
It is not used now. * common.mk: prelude.c and golf_prelude.c doesn't depend on rbconfig. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* NEWS: add an "Implementation changes" section.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* lib/net/http.rb: Do not attempt SSL session resumption when thedrbrain
session is expired. [Bug #10533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25* lib/rake: Update to rake 10.4.0drbrain
* test/rake: ditto. * NEWS: ditto. * test/lib/minitest/unit.rb: Add compatibility shim for minitest 5. This only provides minitest 5 unit test naming compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25vcs.rb: make Time with proper offsetnobu
* tool/vcs.rb (get_revisions): use Time.new instead of Time.mktime which does not accept UTC offset, and offset manually for older versions than 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25add gem name [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25process.c: initialize static IDs firstnobu
* process.c (Init_process): initialize static IDs before constant definitions. [ruby-core:66445] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-25compile.c (iseq_build_callinfo_from_hash): hoist outnormal
iseq_build_from_ary_body indentation was too deep for my little terminal, so extract it so it is easier to add keyword support. * compile.c (iseq_build_callinfo_from_hash): hoist out (iseq_build_from_ary_body): shorten callinfo case git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-24* gems/bundled_gems: Update to 3.0.7.kou
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-24process.c: get rid of inadvertent ID pindownnobu
* process.c (check_exec_redirect_fd, check_exec_redirect), (rb_execarg_addopt): get rid of inadvertent ID pindown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23string.c: preserve encoding of global variablenobu
* string.c (rb_str_setter): preserve encoding of global variable name in error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23iseq.c: preserve encoding at disassemblingnobu
* iseq.c (rb_insn_operand_intern): preserve encoding of method name in CALL_INFO at disassembling. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23io.c: preserve encodingsnobu
* io.c (must_respond_to): preserve encodings of variable name and class name in warning message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23trivial packing of rb_execarg, load_file_arg, args_infonormal
* internal.h (struct rb_execarg): 160 => 144 bytes on x86-64 * ruby.c (struct load_file_arg): 48 => 40 bytes on x86-64 * vm_args.c (struct args_info): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-23ChangeLog: fix a typo [ci skip]normal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-22io.c: remove redundant assignmentnobu
* io.c (rb_io_sysread): Remove redundan assignment of 'n'. [Fix GH-767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-22* tool/make-snapshot: Specify PWD macro for make.akr
PWD environment variable may not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21* lib/resolv.rb: fall back if canonicalization fails.tenderlove
Thanks Vit Ondruch for the patch! [ruby-core:65836] * test/resolv/test_dns.rb: test for patch git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21get rid of inadvertent ID creationnobu
* object.c (rb_mod_const_get, rb_mod_const_defined): ditto. * variable.c (rb_const_missing, rb_mod_const_missing): call const_missing without new ID to get rid of inadvertent ID creation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21* common.mk (ext/ripper/ripper.c): revert about srcdir and top_srcdir.naruse
* common.mk (ext/ripper/ripper.c): use $(PWD) for Unix, $(MAKEDIR) for Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21fix a typo [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21* tool/update-deps: Refactored.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21* win32/Makefile.sub (top_srcdir): added because lacking this macro causesusa
build error at r48526. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21Forgot to commit.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-21common.mk: fix dependenciesnobu
* common.mk (ext/ripper/ripper.c): fix dependencies for the case to make ripper.y and id.h under the build directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-20* common.mk (ext/ripper/ripper.c): id.h in VPATH may exist in the buildnaruse
directory. * common.mk (ext/ripper/ripper.c): $(RM) was not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-20* ext/openssl/lib/openssl/x509.rbusa
(OpenSSL::X509::Name::RFC2253DN::StringChar): get rid of a false positive assertion in ripper's test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-20* ChangeLog: missed at r48518.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e