aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * vsnprintf.c: Fix spelling from compliment to complement.charliesome2013-10-133-2/+9
| | | | | | | | Patch by @agrimm. Closes GH-422. * include/ruby/ruby.h: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c: initialize defined_module_hash earlynobu2013-10-133-1/+14
| | | | | | | * vm.c (Init_BareVM): initialize defined_module_hash here, Init_top_self() is too late to register core classes/modules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.in: generate for each makefilesnobu2013-10-131-4/+4
| | | | | | * Makefile.in (MKFILES): generate for each files for parallel build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rake_clean.rb: skip on Windowsnobu2013-10-131-1/+7
| | | | | | | * test/rake/test_rake_clean.rb (create_undeletable_file): skip when permission to delete files is different. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-13svn2013-10-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c, vm.c: reduce hash mergenobu2013-10-133-15/+36
| | | | | | | | * compile.c (compile_array_): no hash to merge if it is empty. * vm.c (m_core_hash_merge_kwd): just check keys if only one argument is given, without merging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_notimp.rb: test timeoutnobu2013-10-131-12/+14
| | | | | | * test/ruby/test_notimp.rb (test_call_fork): test timeout directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* get rid of a garbage characterkazu2013-10-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-10-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces, append newline at EOF.nobu2013-10-112-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS (with all sufficient information):drbrain2013-10-1183-2953/+1723
| | | | | | | | | | | * lib/rake: Update to rake 10.1.0 * bin/rake: ditto. * test/rake: ditto. * NEWS: Update NEWS to include rake 10.1.0 and links to release notes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c, variable.c, gc.c (rb_class_tbl): removed.ko12013-10-116-16/+36
| | | | | | | | | | | | | | | * vm.c, vm_core.h (rb_vm_add_root_module): added to register as a defined root module or class. This guard helps mark miss from defined classes/modules they are only refered from C's global variables in C-exts. Basically, it is extension's bug. Register to hash object VM has. Marking a hash objects allows generational GC supports. * gc.c (RGENGC_PRINT_TICK): disable (revert). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_method.c (rb_gc_mark_unlinked_live_method_entries):ko12013-10-112-3/+6
| | | | | | | | revert last commit to introduce debug prints. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r43259 because it is possible to mark miss classes defined in C-exts. ↵ko12013-10-115-13/+19
| | | | | | Thanks charliesome. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-12svn2013-10-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c, variable.c, gc.c (rb_class_tbl): removed.ko12013-10-114-15/+11
| | | | | | | | rb_class_tbl is no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h, parse.y: use `full_mark' instead of `full_marking'.ko12013-10-113-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: use terminology `full_mark' instead of `minor_gc'ko12013-10-112-19/+27
| | | | | | | | in mark functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: use __GNUC__ instead of __GCC__.ko12013-10-112-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c, parse.y: support generational Symbol relatetd marking.ko12013-10-114-6/+29
| | | | | | | | | | | | | | | | | Each symbols has String objects respectively to represent Symbols. These objects are marked only when: * full marking * new symbols are added This hack reduce symbols (related strings) marking time. For example, on my Linux environment, the following code "20_000_000.times{''}" with 40k symbols (similar symbol number on Rails 3.2.14 app, @jugyo tells me) boosts, from 7.3sec to 4.2sec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import ruby-electric.el 2.0.1, a bug fix release.knu2013-10-112-14/+29
| | | | | | | | | | | | | | | | * misc/ruby-electric.el: Import ruby-electric.el 2.0.1 which fixes a bug and a flaw with auto-end introduced in the revamp. * ruby-forward-sexp is inappropriate here because it moves the cursor past the keyword. * Fix a reversed looking-back check in ruby-electric--block-beg-keyword-at-point-p. * Do not add end again if space or return is hit repeatedly after a block beginning keyword. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/objspace/gc_hook.c: prohibit reentrant.ko12013-10-112-5/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c (rb_postponed_job_flush): fix bit operation.ko12013-10-112-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import ruby-electric.el 2.0.knu2013-10-112-174/+274
| | | | | | | | | | | | | | | | | | | | | | | | | * misc/ruby-electric.el: Import ruby-electric.el 2.0 from https://github.com/knu/ruby-electric.el which integrates changes from another fork by @qoobaa. * Allow ruby-electric-mode to be disabled by introducing a dedicated key map. Electric key bindings are now defined in ruby-electric-mode-map instead of overwriting ruby-mode-map. * Add ruby-electric-mode-hook. * Use a remap in binding ruby-electric-delete-backward-char. * Totally revamp electric keywords and then introduce electric return. Modifier keywords are now properly detected making use of ruby-mode's indentation level calculator, and * block-mid keywords (then, else, elsif, when, rescue and ensure) also become electric with automatic reindentation. * Add standarized comments for ELPA integration. * Fix interaction with smartparens-mode by disabling its end keyword completion, since ruby-electric has become more clever at it. * The custom variable `ruby-electric-keywords` is changed to `ruby-electric-keywords-alist`, allowing user to fine-grained configuration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c (rb_postponed_job_flush): simplify.ko12013-10-112-39/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r43248. Should not set interrupt_flag.ko12013-10-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: use macronobu2013-10-101-1/+1
| | | | | | * vm_trace.c (rb_postponed_job_flush): use dedicated macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: suppress warningsnobu2013-10-101-6/+6
| | | | | | | * vm_trace.c (rb_postponed_job_flush): suppress clobbered variable warnings on some gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.h: define or declare finite alwaysnobu2013-10-101-0/+2
| | | | | | | * include/ruby/win32.h (finite): always define or declare. some mingw (maybe w64 only?) lack the declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_trace.c: fix infinite hooknobu2013-10-104-28/+87
| | | | | | | | | | * thread.c (rb_threadptr_execute_interrupts): flush postponed job only once at last. * vm_trace.c (rb_postponed_job_flush): defer calling postponed jobs registered while flushing to get rid of infinite reentrance of ObjectSpace.after_gc_start_hook. [ruby-dev:47400] [Bug #8492] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-11svn2013-10-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* st.c: revert st_keysnobu2013-10-104-44/+12
| | | | | | * st.c: revert st_keys() at r43238. VALUE cannot be in st.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_or): remove unused variables.glass2013-10-102-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_or): use rb_hash_keys().glass2013-10-102-14/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_compact_bang): use ary_resize_smaller().glass2013-10-102-4/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_keys): define st_keys() for performance improvement ofglass2013-10-104-12/+44
| | | | | | | | | | Hash#keys and Array#uniq. * st.h: ditto. * hash.c (rb_hash_keys): use st_keys(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_exec): support :b_return event for "lambda{return}.call".ko12013-10-103-0/+40
| | | | | | | | | [Bug #8622] * test/ruby/test_settracefunc.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: bail out if no memorynobu2013-10-101-0/+1
| | | | | | | * win32/win32.c (rb_w32_write_console): bail out when buffer allocation failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* numeric.c: no declaration of finitenobu2013-10-101-1/+1
| | | | | | | * numeric.c (finite): disable declaration on Windows, which can be defined in ruby/win32.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c (postponed_job): use preallocated buffer.ko12013-10-103-19/+63
| | | | | | | | | | | | | Pre-allocate MAX_POSTPONED_JOB (1024) sized buffer and use it. If rb_postponed_job_register() cause overflow, simply it fails and returns 0. And maybe rb_postponed_job_register() is signal safe. * vm_core.h: change data structure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: use str_duplicatenobu2013-10-101-1/+1
| | | | | | | * string.c (rb_str_resurrect): use str_duplicate(), which does completely same. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c: hide singleton class of frozen-corenobu2013-10-102-0/+8
| | | | | | | * vm.c (Init_VM): hide also the singleton class of frozen-core, not only frozen-core itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rand.rb: fix r43224. local variable `e' isko12013-10-092-1/+6
| | | | | | | | no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby: assert_raise_with_messagenobu2013-10-095-12/+6
| | | | | | * test/ruby: use assert_raise_with_message git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2013-10-10svn2013-10-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_aref): avoid a possible undefined behavior.mame2013-10-092-1/+7
| | | | | | | 1L << 63 on 64-bit platform is undefined, at least, according to ISO/IEC 9899 (C99) 6.5.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* object.c: avoid inadvertent symbol creationnobu2013-10-094-8/+68
| | | | | | * object.c (id_for_attr): avoid inadvertent symbol creation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog; fix typos in r43170.nagachika2013-10-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_module.rb: quote namenobu2013-10-091-4/+9
| | | | | | | * test/ruby/test_module.rb (test_bad_constants, test_invalid_attr): encode and quote name properly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typoskazu2013-10-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e