aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gc.c: should_be_callablenobu2013-11-091-7/+12
| | | | | | * gc.c (should_be_callable): extract duplicate code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-11-10svn2013-11-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/racc/rdoc/grammar.en.rdoc: [DOC] fix typo by Tsuyoshi Sawadazzak2013-11-092-1/+6
| | | | | | | [Bug #9077] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: spec date from VCSnobu2013-11-094-7/+40
| | | | | | | | * tool/rbinstall.rb (Gem::Specification.load): obtain spec date from VCS for the case using git, RUBY_RELEASE_DATE is the last resort. probably fixes [Bug #9085]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_objspace.rb: assertion for temporary filenobu2013-11-091-0/+14
| | | | | | | * test/objspace/test_objspace.rb (TestObjSpace#test_dump_all): add assertion for output to temporary file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* objspace_dump.c: fix declarationnobu2013-11-091-1/+1
| | | | | | | * ext/objspace/objspace_dump.c (dump_output): fix declaration, mkstemp() needs a writable buffer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo in my ChangeLog entrytmm12013-11-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/objspace/object_tracing.c: use declarations in internal.h.nari2013-11-093-4/+7
| | | | | | * ext/objspace/objspace.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/objspace/test_objspace.rb (test_dump_all): Make the test stringakr2013-11-092-2/+8
| | | | | | | | | shorter to be an embedded string on 32bit environment as well as 64bit environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "* internal.h: prototype declarations of gc.c collect up."nari2013-11-092-6/+4
| | | | | | | | These declarations should be exported. This reverts commit 3c9f88c2ce138f2714c36cd25dc9b50ec93861e7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: prototype declarations of gc.c collect up.nari2013-11-092-4/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vcs.rb: splitnobu2013-11-092-101/+103
| | | | | | * tool/vcs.rb: split from file2lastrev.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* objspace_dump.c: fix portability issuenobu2013-11-092-1/+13
| | | | | | | * ext/objspace/objspace_dump.c (dump_output): fix portability issue. mkstemp() may not be available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* objspace_dump.c: extract output option utilitiesnobu2013-11-091-45/+44
| | | | | | | | * ext/objspace/objspace_dump.c (dump_output, dump_result): extract output option utility functions from objspace_dump() and objspace_dump_all(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* objspace_dump.c: suppress warningsnobu2013-11-091-3/+1
| | | | | | | * ext/objspace/objspace_dump.c (dump_object): remove unused variables, and cast size_t to long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* objspace_dump.c: indentnobu2013-11-091-91/+91
| | | | | | * ext/objspace/objspace_dump.c: adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* no kanjizzak2013-11-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2013-11-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znzzzak2013-11-092-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]zzak2013-11-099-2/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb: [DOC] document Time#w3cdtf by @steveklabnikzzak2013-11-092-0/+20
| | | | | | | [Bug #8821] ありがとうかににく git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add patch author from previous commitzzak2013-11-091-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c: [DOC] fix typo in example [Bug #8944]zzak2013-11-092-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb: [DOC] better example for assert_send()zzak2013-11-092-2/+7
| | | | | | | Patch by Andrew Grimm [Bug #8975] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def: unify ic_constant_serial and ic_class_serial into one fieldcharliesome2013-11-094-8/+17
| | | | | | | | | | | ic_serial. This is possible because these fields are only ever used exclusively with each other. * insns.def: ditto * vm_core.h: ditto * vm_insnhelper.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c: unify names of vm state version counters to 'serial'.charliesome2013-11-0910-45/+59
| | | | | | | | | | | | | | | | This includes renaming 'vm_state_version_t' to 'rb_serial_t', 'method_state' to 'method_serial', 'seq' to 'class_serial', 'vmstat' to 'constant_serial', etc. * insns.def: ditto * internal.h: ditto * vm.c: ditto * vm_core.h: ditto * vm_insnhelper.c: ditto * vm_insnhelper.h: ditto * vm_method.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_page_sweep, rgengc_rememberset_mark): Refactoring.tarui2013-11-092-2/+7
| | | | | | | Get bitmaps directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (RVALUE_PROMOTE_INFANT): Refactoring. Remove duplicated nonsensetarui2013-11-092-6/+5
| | | | | | | code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_marks_test): Bugfix. Fix a struct member name for buildtarui2013-11-092-2/+7
| | | | | | | with RGENGC_CHECK_MODE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c : Add GC_PROFILE_DETAIL_MEMORY option.tarui2013-11-082-1/+41
| | | | | | | | If GC_PROFILE_MORE_DETAIL && GC_PROFILE_DETAIL_MEMORY, maxrss, minflt and majflt are added to each profile record. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* From 33f55b1eac7f044feb59a29da4a5a82bee3f419e Mon Sep 17 00:00:00 2001nobu2013-11-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: Nobuyoshi Nakada <nobu@ruby-lang.org> Date: Fri, 8 Nov 2013 17:40:10 -0500 Subject: [PATCH 2/2] internal.h: prototype declarations * internal.h (rb_vm_backtrace_object, rb_gc_count): make prototype declarations, not old-K&R style. --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal.h b/internal.h index 20a813c..4cea0a8 100644 --- a/internal.h +++ b/internal.h @@ -747,7 +747,7 @@ void rb_backtrace_print_as_bugreport(void); int rb_backtrace_p(VALUE obj); VALUE rb_backtrace_to_str_ary(VALUE obj); void rb_backtrace_print_to(VALUE output); -VALUE rb_vm_backtrace_object(); +VALUE rb_vm_backtrace_object(void); RUBY_SYMBOL_EXPORT_BEGIN const char *rb_objspace_data_type_name(VALUE obj); @@ -818,7 +818,7 @@ int rb_st_insert_id_and_value(VALUE obj, st_table *tbl, ID key, VALUE value); st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl); /* gc.c */ -size_t rb_gc_count(); +size_t rb_gc_count(void); size_t rb_obj_memsize_of(VALUE); RUBY_SYMBOL_EXPORT_END -- 1.8.4.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: prototype declarationsnobu2013-11-081-0/+5
| | | | | | | | * internal.h (rb_vm_backtrace_object, rb_gc_count): make prototype declarations, not old-K&R style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: indentnobu2013-11-081-2/+2
| | | | | | | * tool/rbinstall.rb (Gem::Specification#to_ruby): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rbinstall.rb: make stable files in .gemspecnobu2013-11-082-1/+9
| | | | | | | | | | * tool/rbinstall.rb (Gem::Specification#collect): make stable Gem::Specification.files in default .gemspecs the different order of "files" in .gemspec files makes them different therefore possibly conflicting in multilib scenario. patch by vo.x (Vit Ondruch) at [ruby-core:57544] [Bug #8623]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2013-11-080-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/objspace/object_tracing.c: Add experimental methods to dumptmm12013-11-087-14/+483
| | | | | | | | objectspace as json: ObjectSpace.dump_all and ObjectSpace.dump(obj). These methods are useful for debugging reference leaks and memory growth in large ruby applications. [Bug #9026] [ruby-core:57893] [Fixes GH-423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-11-09svn2013-11-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: remove unnecessary declarationnobu2013-11-082-1/+6
| | | | | | | | * file.c (GetLastError): already defined in windows.h on nowadays cygwin, and caused the confliction with the system provided definition on cygwin64. by @kou1okada [Fixes GH-433]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb: receive arguments as keyword arguments.glass2013-11-082-86/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_open_with_args): use RARRAY_CONST_PTR().glass2013-11-082-4/+14
| | | | | | | | | | * io.c (rb_scan_open_args): use const qualifier for above. * io.c (rb_open_file): ditto. * io.c (rb_io_open_with_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, pack.c, ruby.c, struct.c, vm_eval.c: use RARRAY_CONST_PTR().glass2013-11-086-12/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_build_from_ary_exception): use RARRAY_CONST_PTR().glass2013-11-082-3/+10
| | | | | | * compile.c (iseq_build_from_ary_body): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (append_method): use RARRAY_CONST_PTR().glass2013-11-082-2/+8
| | | | | | * enumerator.c (lazy_init_iterator): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_logger.rb: clear garbage filesnobu2013-11-071-4/+1
| | | | | | | * test/logger/test_logger.rb (test_shifting_age_in_multiprocess): unlink rotated log files all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: use switch for alternative BUILTIN_TYPEnobu2013-11-071-7/+9
| | | | | | | * gc.c (rb_objspace_call_finalizer): BUILTIN_TYPE is alternative, T_DATA object (Thread, Mutex, Fiber) cannot be T_FILE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* commit miss from r43573zzak2013-11-071-8/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (vm_malloc_increase): check GVL before gc_rest_sweep().ko12013-11-072-1/+15
| | | | | | | | | | | | | | | vm_malloc_increase() can be called without GVL. However, gc_rest_sweep() assumes acquiring GVL. To avoid this problem, check GVL before gc_rest_sweep(). [Bug #9090] This workaround introduces possibility to set malloc_limit as wrong value (*1). However, this may be rare case. So I commit it. *1: Without rest_sweep() here, gc_rest_sweep() can decrease malloc_increase due to ruby_sized_xfree(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: [DOC] specify arguments passed to ::random_byteszzak2013-11-071-0/+5
| | | | | | | By @chastell [Fixes GH-412] https://github.com/ruby/ruby/pull/412 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/objspace/object_tracing.c: [DOC] trace_object_allocations_stopzzak2013-11-072-2/+7
| | | | | | | By @srawlins [Fixes GH-421] https://github.com/ruby/ruby/pull/421 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb: [DOC] Document Net::FTP.mdtm and .set_socket and fixzzak2013-11-072-6/+14
| | | | | | | | spelling typo, based on patch by @artfuldodger [Fixes GH-426] https://github.com/ruby/ruby/pull/426 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e