summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-09* compile.c (iseq_compile_each): emit opt_str_freeze if the #freezecharliesome
method is called on a static string literal with no arguments. * defs/id.def (firstline): add freeze so idFreeze is available * insns.def (opt_str_freeze): add opt_str_freeze instruction which pushes a frozen string literal without allocating a new object if String#freeze is not overriden * string.c (Init_String): define String#freeze * vm.c (vm_init_redefined_flag): define BOP_FREEZE on String class as a basic operation * vm_insnhelper.h: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09test_objectspace.rb: run in separate processnobu
* test/ruby/test_objectspace.rb (TestObjectSpace#test_finalizer): run in separate process so that finalizers run at termination certainly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09envutil.rb: under_gc_stress parameternobu
* test/ruby/envutil.rb (EnvUtil#under_gc_stress): add stress parameter so that making possible to disable stressing explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09rbinstall.rb: fix for non-working directorynobu
* tool/rbinstall.rb (Gem::Specification.last_date): skip if failed to get info from VCS, for example, in the case circumstance sharing working directory with another machine and run vcs tools cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* gc.c (vm_malloc_increase): sweep immediately on GC due to malloc().ko1
To reduce memory usage, sweep as soon as possible. This behavior is same as Ruby 2.0.0 and before. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* benchmark/gc/gcbench.rb: output version description and GC::OPTS.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09gc.c: private callnobu
* gc.c (should_be_callable): allow private call since rb_eval_cmd calls even private methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09gc.c: should_be_callablenobu
* 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-09* 2013-11-10svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* lib/racc/rdoc/grammar.en.rdoc: [DOC] fix typo by Tsuyoshi Sawadazzak
[Bug #9077] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09rbinstall.rb: spec date from VCSnobu
* 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
2013-11-09test_objspace.rb: assertion for temporary filenobu
* 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
2013-11-09objspace_dump.c: fix declarationnobu
* 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
2013-11-09fix typo in my ChangeLog entrytmm1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* ext/objspace/object_tracing.c: use declarations in internal.h.nari
* ext/objspace/objspace.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* test/objspace/test_objspace.rb (test_dump_all): Make the test stringakr
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
2013-11-09Revert "* internal.h: prototype declarations of gc.c collect up."nari
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
2013-11-09* internal.h: prototype declarations of gc.c collect up.nari
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09vcs.rb: splitnobu
* tool/vcs.rb: split from file2lastrev.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09objspace_dump.c: fix portability issuenobu
* 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
2013-11-09objspace_dump.c: extract output option utilitiesnobu
* 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
2013-11-09objspace_dump.c: suppress warningsnobu
* 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
2013-11-09objspace_dump.c: indentnobu
* ext/objspace/objspace_dump.c: adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09no kanjizzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09fix a typokazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znzzzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812]zzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* lib/rss/rss.rb: [DOC] document Time#w3cdtf by @steveklabnikzzak
[Bug #8821] ありがとうかににく git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09Add patch author from previous commitzzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* ext/dl/cfunc.c: [DOC] fix typo in example [Bug #8944]zzak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* lib/test/unit/assertions.rb: [DOC] better example for assert_send()zzak
Patch by Andrew Grimm [Bug #8975] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09* insns.def: unify ic_constant_serial and ic_class_serial into one fieldcharliesome
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
2013-11-09* class.c: unify names of vm state version counters to 'serial'.charliesome
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
2013-11-09 * gc.c (gc_page_sweep, rgengc_rememberset_mark): Refactoring.tarui
Get bitmaps directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09 * gc.c (RVALUE_PROMOTE_INFANT): Refactoring. Remove duplicated nonsensetarui
code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-09 * gc.c (gc_marks_test): Bugfix. Fix a struct member name for buildtarui
with RGENGC_CHECK_MODE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 * gc.c : Add GC_PROFILE_DETAIL_MEMORY option.tarui
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
2013-11-08From 33f55b1eac7f044feb59a29da4a5a82bee3f419e Mon Sep 17 00:00:00 2001nobu
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
2013-11-08internal.h: prototype declarationsnobu
* 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
2013-11-08rbinstall.rb: indentnobu
* 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
2013-11-08rbinstall.rb: make stable files in .gemspecnobu
* 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
2013-11-08* properties.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08* ext/objspace/object_tracing.c: Add experimental methods to dumptmm1
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-08* 2013-11-09svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08file.c: remove unnecessary declarationnobu
* 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
2013-11-08* lib/open3.rb: receive arguments as keyword arguments.glass
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08* io.c (rb_io_open_with_args): use RARRAY_CONST_PTR().glass
* 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
2013-11-08* dir.c, pack.c, ruby.c, struct.c, vm_eval.c: use RARRAY_CONST_PTR().glass
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08* compile.c (iseq_build_from_ary_exception): use RARRAY_CONST_PTR().glass
* 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
2013-11-08* enumerator.c (append_method): use RARRAY_CONST_PTR().glass
* enumerator.c (lazy_init_iterator): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e