aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_settracefunc.rb (test_tracepoint):ko12012-10-042-53/+6
| | | | | | | | | remove unused test case. (this test case is redefined by newer tests) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace_call_finalizer): call gc_mark_stacked_objectsnari2012-10-042-3/+6
| | | | | | at suitable point. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: self-referencing finalizersnobu2012-10-042-6/+26
| | | | | | | | * gc.c (rb_objspace_call_finalizer): mark self-referencing finalizers before run finalizers, to fix SEGV from btest on 32bit. * gc.c (gc_mark_stacked_objects): extract from gc_marks(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: use enum for debugging.nobu2012-10-041-53/+55
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_pthread.c: precise stack sizenobu2012-10-042-2/+16
| | | | | | | | * thread_pthread.c (ruby_init_stack): round stack limit to page size boundary to calculate stack size more precisely. [ruby-dev:46174] [Bug #7084] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (RUBY_STACK_MIN_LIMIT): name magic number.nobu2012-10-041-19/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-10-04svn2012-10-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html5.rb: Add html5 tag maker.xibbar2012-10-043-2/+67
| | | | | | | * lib/cgi/core.rb: ditto. [Feature #6637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: unused functionnobu2012-10-031-2/+3
| | | | | | | * gc.c (free_stack_chunks): it is used only when per-VM object space is enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: Use the non-recursive marking instead of recursion. Thenari2012-10-034-237/+270
| | | | | | | | | | | | | | recursion marking of CRuby needs checking stack overflow and the fail-safe system, but these systems not good at partial points, for example, marking deep tree structures. [ruby-dev:46184] [Feature #7095] * configure.in (GC_MARK_STACKFRAME_WORD): removed. It's used by checking stack overflow of marking. * win32/Makefile.sub (GC_MARK_STACKFRAME_WORD): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: fix typo.nobu2012-10-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* depend: dependencynobu2012-10-031-1/+1
| | | | | | * ext/json/generator/depend: fix missing dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_pthread.c: init stack with ulimitnobu2012-10-032-1/+18
| | | | | | | | | * thread_pthread.c (ruby_init_stack): use getrlimit() for the main thread on Mac OS X, since pthread_get_stack{addr,size}_np() and return the default value always, but not the ulimit value. [ruby-dev:46174] [Bug #7084] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: improved IO#reopennobu2012-10-033-35/+83
| | | | | | | | * io.c (rb_io_reopen): improvement to accept optional arguments. a patch by Glass_saga (Masaki Matsushita) in [ruby-core:47806]. [Feature #7103] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509store.c (ossl_x509store_add_file): Addeddrbrain2012-10-022-0/+34
| | | | | | | | | | documentation * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths): ditto * ext/openssl/ossl_x509store.c (ossl_x509store_add_cert): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-10-03svn2012-10-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_to_s, name_err_to_s, name_err_mesg_to_str): do notshugo2012-10-023-7/+56
| | | | | | taint messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-10-02svn2012-10-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: hide internal hashnobu2012-10-022-5/+7
| | | | | | | * eval.c (identity_hash_new): hide internal hashes for refinements. * eval.c (rb_mod_refine): no default value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix typos of r37064.nagachika2012-10-011-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (identify_hash_new): new function to create a new identityshugo2012-10-012-6/+25
| | | | | | | | | hash. * eval.c (rb_overlay_module, rb_mod_using, rb_mod_refine): use identify_hash_new(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-10-01svn2012-09-301-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (--with-opt-dir): Make this also work on DLDFLAGSknu2012-09-302-1/+9
| | | | | | | | so LIBRUBY_SO links fine with libexecinfo installed in a non-system directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (rb_vm_bugreport): add /Library/Logs/DiagnosticReportsmrkn2012-09-302-3/+9
| | | | | | in the list of locations of crash reports. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enumerator.rb (enum_test, test_inspect): remove unusednagachika2012-09-301-2/+1
| | | | | | variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-09-30svn2012-09-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_concat): use memcpy to copy a string which containsnaruse2012-09-303-1/+12
| | | | | | NUL characters. [ruby-core:47751] [Bug #7090] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: kill child process when timeoutshirosaki2012-09-293-1/+15
| | | | | | | | | | | * test/ruby/envutil.rb (EnvUtil#invoke_ruby): kill child process before Timeout::Error is raised. rmdir of mktmpdir fails with EACCES if child process is alive on Windows. * test/thread/test_queue.rb (TestQueue): increase timeout. This test takes long time on Windows XP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_http.rb: clear environment variablesshirosaki2012-09-292-11/+23
| | | | | | | | | | * test/net/http/test_http.rb (TestNetHTTP#test_proxy_address): clear environment variables. If http_proxy environment variable was set, the test failed. * test/net/http/test_http.rb (TestNetHTTP#test_proxy_port): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* drbtest.rb: use :KILL on Windowsshirosaki2012-09-292-2/+11
| | | | | | | | | | | * test/drb/drbtest.rb (DRbCore#teardown): Use Process.kill :KILL on Windows because Process.kill :INT silently fails on Windows 7 and raises EINVAL on Windows XP for spawned process with new_pgroup: false. * test/drb/drbtest.rb (DRbAry#teardown): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_unicode_escape.rb: set script encodingshirosaki2012-09-292-5/+8
| | | | | | | | * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): set script encoding to work with LANG=C. It would work on both Windows and Unix. Refix of r37051. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (rb_vm_using_modules): use using_modules beforeshugo2012-09-294-14/+81
| | | | | | | | | | | | | | | klass to fix method lookup order, and use klass even if klass is not a module to make refinements in class_eval invoked on classes work. * eval.c (rb_using_module): accept a class as the second argument. * eval.c (rb_mod_using, f_using): raise a TypeError if the argument is not a module. * test/ruby/test_refinement.rb: add new tests for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-09-29svn2012-09-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic):shirosaki2012-09-282-1/+11
| | | | | | | Use ruby only on Windows since the test fails on Unix with LANG=C. [ruby-core:47709] [Bug #7076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_unicode_escape.rb: fix test for Windowsshirosaki2012-09-282-1/+9
| | | | | | | | | * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): echo command doesn't work properly against non-ascii character on Windows with chcp 437. Instead we use ruby. [ruby-core:47709] [Bug #7076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_setup_method): refactoring.ko12012-09-282-7/+11
| | | | | | | | Remove src_argc and use iseq->arg_size directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (check_that_user_bin_dir_is_in_path):naruse2012-09-282-1/+16
| | | | | | | | | | test_generate_bin_bindir_with_user_install_warning(TestGemInstaller) fails on Windows with msys bash. It makes comparing paths case-insensitive. pick from upstream to fix a failure of test-all [ruby-core:47711] https://github.com/rubygems/rubygems/commit/c474edb2f3704206f04da1c8c6cf9fb079d84abe git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c: fix typesnobu2012-09-281-4/+4
| | | | | | | | * vm_insnhelper.c (vm_setup_method): fix -Wshorten-64-to-32. * vm_insnhelper.c (vm_base_ptr): fix -Wformat git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (search_method): copy refinement iclasses to searchshugo2012-09-283-8/+48
| | | | | | | | superclasses correctly. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_checkenv): remove unused instruction `opt_checkenv'.ko12012-09-286-39/+10
| | | | | | | | | | * compile.c (iseq_compile_each): ditto. * node.h: remove unused node `NODE_OPTBLOCK'. * ext/objspace/objspace.c, gc.c (gc_mark_children): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: now VM_DEBUG_BP_CHECK should be 1.ko12012-09-282-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h: remove rb_control_frame_t::bp (bp: base pointer).ko12012-09-287-42/+98
| | | | | | | | | | | | | | | | | | | `bp' can be calculate by `sp' (stack pointer) of previous frame. Now, `bp_check' field is remained for debug. You can eliminate this field by setting VM_DEBUG_BP_CHECK as 0. * vm_insnhelper.c (vm_base_ptr): add `vm_base_ptr(cfp). This function calculates base pointer from cfp. * vm_insnhelper.c (vm_setup_method): push `recv' value on top of value stack (before method parameters). This change is for keeping consistency with normal method dispatch. * insns.def: fix to use vm_base_ptr(). * vm.c (vm_exec): ditto. * vm_dump.c: remove `bp' related dumps. * cont.c (fiber_init): fix to check VM_DEBUG_BP_CHECK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-09-28svn2012-09-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: IO#reopen int modenobu2012-09-283-2/+39
| | | | | | | | * io.c (rb_io_reopen): accept File::Constants as well as mode string. based on the patch by Glass_saga (Masaki Matsushita) in [ruby-core:47694]. [Feature #7067] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_overlay_module, rb_mod_refine): accept a module as theshugo2012-09-274-7/+94
| | | | | | | | | | | | argument of Module#refine. * vm_method.c (search_method): if klass is an iclass, lookup the original module of the iclass in omod in order to allow refinements of modules. * test/ruby/test_refinement.rb: add tests for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syslog/lib/syslog/logger.rb: add a formatter to theknu2012-09-273-14/+50
| | | | | | | Syslog::Logger object. [Bug #7065] * test/syslog/test_syslog_logger.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-09-27svn2012-09-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: invariant IDsnobu2012-09-271-4/+12
| | | | | | | * eval.c (rb_mod_include, rb_obj_extend): move invariant IDs to outside of loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def: add new instruction `opt_empty_p' for optimize `empty?'ko12012-09-268-0/+74
| | | | | | | | | | | | | method. Apply a patch proposed at [ruby-dev:46120] [ruby-trunk - Feature #6972] by Glass_saga (Masaki Matsushita). * compile.c (iseq_specialized_instruction), vm.c, vm_insnhelper.h: ditto. * id.c, template/id.h.tmpl: ditto. * test/ruby/test_optimization.rb: test for this changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert "Darwin 12 (OS X Mountain Lion) also has Bug #6692"naruse2012-09-261-1/+1
| | | | | | | This reverts commit r37033. darwin12 seems to use an address started with fe80. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e