summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-07-26* lib/delegate.rb: split executable code into sample directory.hsbt
* sample/delegate.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26* proc.c (method_super_method): [DOC] Method#super_methodzzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26proc.c: method_super_methodnobu
* proc.c (method_super_method): new method Method#super_method, which returns a method object of the method to be called by `super` in the receiver method object. [ruby-core:62202] [Feature #9781] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26* 2014-07-27svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26eval_error.c: quote unprintablenobu
* eval_error.c (rb_print_undef, rb_print_undef_str): quote unprintable names. * eval_error.c (rb_print_inaccessible): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26eval_error.c: rb_print_inaccessiblenobu
* eval_error.c (rb_print_inaccessible): exract from mnew_from_me() in proc.c git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26compile.c: check sizenobu
* compile.c (compile_data_alloc): check allocation size and integer overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26 * ext/objspace/objspace_dump.c (dump_append): avoid fflush.shyouhei
because dump_append_string_value() iterates over each chars, fflush()-ing here effectively issues system calls on every single bytes exist in a ruby process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26struct iseq_compile_data_storage: 16 bytes (from 32) overheadnormal
This reduces the iseq_compile_data_storage header from 32 to 16 bytes on 64-bit systems. pos and size fields cannot exceed 32-bit sizes due to stack size limits. Using a flexible array for the buffer also saves us 8 bytes of pointer overhead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26rb_iseq_t: reduce to (280 bytes from 288 bytes) on 64-bitnormal
iseq_size and line_info_size may be 32-bit. 4GB instruction sequences should be big enough for anyone. Other existing line info counters are 32-bit, and nobody should need all that. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26rbconfig/sizeof: remove garbagenobu
* ext/rbconfig/sizeof/depend: remove garbage dollar mark. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-26rbconfig/sizeof: revert r46924nobu
* ext/rbconfig/sizeof/depend: revert r46924, VPATH prefix, to fix build error on old FreeBSD. NMAKE must die. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25struct parse_params: trivial packingnormal
* parse.y (struct parse_params): shrink to 320 to 304 bytes on 64-bit Some elements may be removed/resized as well, but not as important as reducing more-frequently allocated structures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25ChangeLog: add references [ci skip]normal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO usenormal
Using calloc where possible reduces code and binary sizes. * include/ruby/ruby.h (ZALLOC, ZALLOC_N): implement (Data_Make_Struct, TypedData_Make_Struct): ZALLOC replaces ALLOC+memset * compile.c (iseq_seq_sequence): ZALLOC_N replaces ALLOC_N+MEMZERO * cont.c (fiber_t_alloc): ZALLOC replaces ALLOC+MEMZERO * io.c (rb_io_reopen): ditto * iseq.c (prepare_iseq_build): ditto * parse.y (new_args_tail_gen, parser_new, ripper_s_allocate): ditto * re.c (match_alloc): ditto * variable.c (rb_const_set): ditto * ext/socket/raddrinfo.c (get_addrinfo): ditto * ext/strscan/strscan.c (strscan_s_allocate): ditto * gc.c (rb_objspace_alloc): calloc replaces malloc+MEMZERO git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25* 2014-07-26svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25symbol.c (dsymbol_check): remove unneeded semi-colonnormal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25test/ripper/test_scanner_events.rb: fill empty test methodsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25fix encoding specnobu
"UTF-8" is invalid encoding name in Emacs, use "utf-8" instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25rubygems/util.rb: redirect optionsnobu
* lib/rubygems/util.rb (Gem.silent_system): use keyword options to redirect outputs instead of reopening global IOs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25specification.rb: fix leaked FDsnobu
* lib/rubygems/specification.rb (build_extensions): close redirection FDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25rubygems/util.rb: fix leaked FDsnobu
* lib/rubygems/util.rb (silent_system): close duplicated IOs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25remote_fetcher.rb: fix leaked FDsnobu
* lib/rubygems/remote_fetcher.rb (request): close connections. * lib/rubygems/request.rb (close): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25test_gem_remote_fetcher.rb: fix leaked FDsnobu
* test/rubygems/test_gem_remote_fetcher.rb (start_server): shutdown remote servers. * test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25test_gem_silent_ui.rb: fix leaked FDsnobu
* lib/rubygems/user_interaction.rb (Gem::StreamUI#close): clean up IOs. * test/rubygems/test_gem_silent_ui.rb (TestGemSilentUI#teardown): fix leaked FDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25leakchecker.rb: temporary measure againt WEBricknobu
* test/lib/leakchecker.rb (LeakChecker#find_threads): temporary measure for unrestartable WEBrick::Utils::TimeoutHandler::Thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25test/unit.rb: temporary measure againt minitestnobu
* test/lib/test/unit.rb (deal): temporary measure for mixing output from the tests of minitest in parallel test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25* gc.c: change objspace::rgengc::parent_object_is_old (boolean)ko1
to objspace::rgengc::parent_object (VALUE). Use Qfalse or RVALUE pointer instead of FALSE and TRUE. * gc.c (gc_marks_body): should clear parent_object just before gc_mark_roots() because there are no parents objects for root objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25* gc.c (rb_gc_writebarrier_remember_promoted): should remember onlyko1
OLD objects on RGENGC_AGE2_PROMOTION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25* gc.c (gc_mark_stacked_objects): fix error message.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25ChangeLog: reference GitHub pull requestcharliesome
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25* ext/socket/socket.c (sock_gethostname): Use NI_MAXHOST to supportcharliesome
hostnames longer than 64 characters if the system supports it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25compile.c: make the receiver condition cleanernobu
* compile.c (defined_expr): make the condition if the receiver is explicit or implicit cleaner. [fix GH-681] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* doc/keywords.rdoc: [DOC] Describe each keyword.drbrain
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* 2014-07-25svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24parse.y: dynamic const assign_error in rippernobu
* parse.y (mlhs_node): dynamic constant assignment in massign should cause assign_error, like as single assign and backref assignment in massign. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24parse.y: move common codenobu
* parse.y (arg, primary): move common code shared with ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* ext/win32ole/win32ole.c (Init_win32ole): add WIN32OLE_RECORD#initializesuke
method. * ext/win32ole/win32ole.c (ole_val2variant): convert WIN32OLE_RECORD object to VT_RECORD variant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* ext/rbconfig/sizeof/depend (sizes.c): fix build failure since r46924.ngoto
[Bug #10089] [ruby-dev:48446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* gc.c: fix major GC flags.ko1
* add GPR_FLAG_MAJOR_BY_FORCE, which indicates major GC by METHOD, CAPI and so on (see GC_BY). * remove GPR_FLAG_MAJOR_BY_RESCAN because not used. * remove GPR_FLAG_MAJOR_BY_STRESS, use FORCE instead. * test/ruby/test_gc.rb: catch up. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24parse.y: remove garbagenobu
* parse.y (assoc): remove garbage semicolon added by r35489. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24* include/ruby/io.h (struct rb_io_buffer_t): PACKED_STRUCT should notngoto
be used for platform-specific optimization. PACKED_STRUCT_UNALIGNED should be used. [ruby-core:63988] [Bug #10088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-24rbconfig/sizeof: VPATH prefixnobu
* ext/rbconfig/sizeof/depend (sizes.c): prefix with nmake-style VPATH to use the distributed source in out-of-place builds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* properties.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* lib/benchmark.rb: split executable code into sample directory.hsbt
* sample/benchmark.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* properties.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* lib/tempfile.rb: split executable code into sample directory.hsbt
* sample/tempfile.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* properties.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* 2014-07-24svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23* lib/pstore.rb: split executable code into sample directory.hsbt
* sample/pstore.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e