aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Define dtrace test classes only when dtrace existsnaruse2012-11-1310-10/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (vm_insnhelper.c): this target is useless and causesnaruse2012-11-132-1/+5
| | | | | | ruby always need rebuild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (insn_data_to_s_detail): remove debug lines.ko12012-11-132-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix ChangeLogko12012-11-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_caller_setup_args): save and restoreko12012-11-133-2/+79
| | | | | | | | | | ci->argc and ci->blockptr before and after method invocations because these method dispatches override call_info. * bootstraptest/test_method.rb: add tests for this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (dmyprobes.h): always create for make dist.naruse2012-11-134-7/+16
| | | | | | | | * Makefile.in (probes.h): create or copy dmyprobes.h * win32/Makefile.sub: only do copy dmyprobes.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (.SUFFIX): .SUFFIX is needed here for .d.h on bsd make.naruse2012-11-132-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk Makefile.in win32/Makefile.sub (.d.h): it's not common.usa2012-11-134-10/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2012-11-130-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix dtrace commit r37631, it is [Feature #2565]naruse2012-11-136-40/+58
| | | | | | | | | | | | | | | * configure.in: disable dtrace because it doesn't work on FreeBSD. * common.mk (clean-local): rm probes.h. * common.mk (parse.o): depend $(PROBES_H_INCLUDES). * common.mk (.d.h): moved from Makefile.in and use BASERUBY. * tool/gen_dummy_probes.rb: reimplemented with ruby because sed is not available on Windows Microsoft VC++ environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/README.win32: added mention about build directory. currentlyusa2012-11-132-0/+10
| | | | | | | | we can not build ruby in win32 directory. this problem is reported by Masahiro Kitajima <katonbo@katontech.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_memsearch_ss): performance improvement by using memmem(3) ifglass2012-11-133-0/+56
| | | | | | | | possible. [ruby-dev:45530] [Feature #6311] * configure.in: check existence of memmem(3) and that it is not broken. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add probes.h to svn:ignore and sort .gitignorekazu2012-11-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2012-11-120-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * probes.d: add DTrace probe declarations. [ruby-core:27448]tenderlove2012-11-1237-25/+850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * array.c (empty_ary_alloc, ary_new): added array create DTrace probe. * compile.c (rb_insns_name): allowing DTrace probes to access instruction sequence name. * Makefile.in: translate probes.d file to appropriate header file. * common.mk: declare dependencies on the DTrace header. * configure.in: add a test for existence of DTrace. * eval.c (setup_exception): add a probe for when an exception is raised. * gc.c: Add DTrace probes for mark begin and end, and sweep begin and end. * hash.c (empty_hash_alloc): Add a probe for hash allocation. * insns.def: Add probes for function entry and return. * internal.h: function declaration for compile.c change. * load.c (rb_f_load): add probes for `load` entry and exit, require entry and exit, and wrapping search_required for load path search. * object.c (rb_obj_alloc): added a probe for general object creation. * parse.y (yycompile0): added a probe around parse and compile phase. * string.c (empty_str_alloc, str_new): DTrace probes for string allocation. * test/dtrace/*: tests for DTrace probes. * vm.c (vm_invoke_proc): add probes for function return on exception raise, hash create, and instruction sequence execution. * vm_core.h: add probe declarations for function entry and exit. * vm_dump.c: add probes header file. * vm_eval.c (vm_call0_cfunc, vm_call0_cfunc_with_frame): add probe on function entry and return. * vm_exec.c: expose instruction number to instruction name function. * vm_insnshelper.c: add function entry and exit probes for cfunc methods. * vm_insnhelper.h: vm usage information is always collected, so uncomment the functions. 12 19:14:50 2012 Akinori MUSHA <knu@iDaemons.org> * configure.in (isinf, isnan): isinf() and isnan() are macros on DragonFly which cannot be found by AC_REPLACE_FUNCS(). This workaround enforces the fact that they exist on DragonFly. 12 15:59:38 2012 Shugo Maeda <shugo@ruby-lang.org> * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo), vm_insnhelper.c (vm_search_method): revert r37616 because it's too slow. [ruby-dev:46477] * test/ruby/test_refinement.rb (test_inline_method_cache): skip the test until the bug is fixed efficiently. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-13svn2012-11-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2012-11-121-2/+2
| | | | | | "garbage" (noun) is uncountable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix build on DragonFly where configure fails to detect isinf()/isnan().knu2012-11-122-0/+9
| | | | | | | | * configure.in (isinf, isnan): isinf() and isnan() are macros on DragonFly which cannot be found by AC_REPLACE_FUNCS(). This workaround enforces the fact that they exist on DragonFly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo),shugo2012-11-125-16/+13
| | | | | | | | | | vm_insnhelper.c (vm_search_method): revert r37616 because it's too slow. [ruby-dev:46477] * test/ruby/test_refinement.rb (test_inline_method_cache): skip the test until the bug is fixed efficiently. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-12svn2012-11-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/mkexports.rb (each_export): skip garbages generated by VS2012'susa2012-11-122-1/+7
| | | | | | | | nmake. reported and patched by Yoshida Masato at [Bug #7333] [ruby-dev:46484] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/date/test_date_{parse,strptime}.rb: changed the format oftadf2012-11-113-454/+458
| | | | | | | some extra messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_parse.c (date__parse): revised the tight parsertadf2012-11-112-38/+83
| | | | | | | (about handling of apostrophes). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] [Bug #7312]naruse2012-11-111-0/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c: warn for wrong elementsnobu2012-11-113-3/+16
| | | | | | | | * hash.c (rb_hash_s_create): just warn for wrong elements now. [ruby-dev:46440] [Bug #7300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c: refine error messagesnobu2012-11-115-5/+17
| | | | | | | | * hash.c (rb_hash_s_create): refine error messages. * error.c (rb_builtin_class_name): share for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (top_using): remove Kernel#using, and add main.using instead.shugo2012-11-113-7/+34
| | | | | | * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_using_refinement, rb_mod_using, f_using): clear methodshugo2012-11-113-1/+78
| | | | | | | | cache only when using is called explicitly. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb (PStore): fix not to replace ThreadError raised inglass2012-11-112-4/+18
| | | | | | | #transaction block with PStore::Error. [ruby-core:39238] [Bug #5269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo):shugo2012-11-115-3/+51
| | | | | | | | | | | | add a new field for inline method cache. * vm_insnhelper.c (vm_search_method): check rb_call_info_t::refinements not to confuse inline method cache when module_eval is used with refinements. * test/ruby/test_refinement.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: removed a comma before "before"duerst2012-11-102-1/+5
| | | | | | (at Tamatsukuri Hot Spring (Onsen Hackathon)) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-11svn2012-11-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: move immutable fields from struct heaps_slot and structnari2012-11-102-50/+47
| | | | | | | sorted_heaps_slot into struct heaps_header. Based on a patch from Sokolov Yura [Feature #6199][ruby-core:43592] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typotadf2012-11-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: modified doc.tadf2012-11-103-8/+22
| | | | | | | * ratioanl.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_parse.c: edited about era.tadf2012-11-102-11/+111
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert of 37541 "* test/ruby/test_enumerator.rb: Add test to shed light upon ↵marcandre2012-11-101-3/+0
| | | | | | | | | the bug" [#7298] This reverts commit 0ab21f9572d5d5f76b908aaf3381cde32a64c4c8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb: Don't install *.gemspec under lib/.kou2012-11-102-1/+7
| | | | | | | | [ruby-core:48966] [Bug #7289] Reported by Vit Ondruch. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby_atomic.h: renamed from atomic.h to avoid header file name conflictngoto2012-11-096-4/+12
| | | | | | | | | on Solaris 10. [ruby-dev:46414] [Bug #7287] * gc.c, signal.c, vm_core.h, common.mk: reflect the rename from atomic.h to ruby_atomic.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * atomic.h: Revert r37491 which is a temporary workaroud.ngoto2012-11-092-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/merger.rb: typo.usa2012-11-091-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * siphash.h: check configure macros before include newer headers.usa2012-11-092-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-11-10svn2012-11-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * siphash.h: include inttypes.h only when HAVE_INTTYPES_H is defined.usa2012-11-092-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: remove redundant entries for r37581-r37584.nagachika2012-11-091-28/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* erb.rb: safe concurrent usenobu2012-11-093-3/+25
| | | | | | | * lib/erb.rb (ERB#run, ERB#result): eval under isolated bindings for safe concurrent use. [ruby-core:47638] [Bug #7046] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* random.c: BYTE_ORDERnobu2012-11-092-1/+16
| | | | | | * random.c (BYTE_ORDER): define using configured WORDS_BIGENDIAN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* siphash.c: union sip_init_statenobu2012-11-091-0/+5
| | | | | | | * siphash.c (sip_init_state): use union to suppress warnings by gcc 4.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* siphash.c: union sip_init_statenobu2012-11-091-2/+5
| | | | | | | * siphash.c (sip_init_state): use union to suppress warnings by gcc 4.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2012-11-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e