aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* compar.c: preserve encodingsnobu2014-08-193-6/+14
| | | | | | | * compar.c (rb_cmperr): preserve encodings of arguments in the message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32ole.c: check overflownobu2014-08-191-1/+1
| | | | | | | * ext/win32ole/win32ole.c (ole_invoke): check integer overflow on win64 platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-19svn2014-08-191-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread.c: check initializednobu2014-08-194-4/+37
| | | | | | | * ext/thread/thread.c (get_array): check instance variables are initialized properly. [ruby-core:63826][Bug #10062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sprintf.c: rational 'f' formatnobu2014-08-184-1/+78
| | | | | | | * sprintf.c (rb_str_format): support rational 'f' format. [ruby-core:64382] [Bug #10136] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sprintf.c: remove magic numbersnobu2014-08-181-2/+3
| | | | | | | * sprintf.c (rb_str_format): name default float precision and remove unused initial value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: has_lisbon_tznobu2014-08-181-1/+6
| | | | | | | * test/ruby/test_time_tz.rb (has_lisbon_tz): separate from has_right_tz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-08-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-18svn2014-08-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * spec/default.mspec: use 2.2 definition.hsbt2014-08-172-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (obj_memsize_of): don't calculate memsize of T_NODEktsj2014-08-172-4/+10
| | | | | | | when called from check_gen_consistency. It fixes segmentation fault on RGENGC_CHECK_MODE >= 1 introduced by r47188. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_invoke): use RHASH_SIZE instead ofsuke2014-08-172-1/+6
| | | | | | | | calling Hash#length method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-17svn2014-08-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/configure.bat: fix eol-stylenobu2014-08-170-0/+0
| | | | | | | | | | * win32/configure.bat: reset svn:eol-style to CRLF, and revert r47015. r47017 just reverted the contents but did not reset it. `svn export` converts CRLF to LF due to this property. [ruby-core:64414] [Bug #10145] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos [ci skip]kazu2014-08-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole_event.c (evs_length): use RARRAY_LEN insteadsuke2014-08-162-6/+10
| | | | | | | of calling Array#length method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_ruby_mode.rb: trivial refinementnobu2014-08-161-2/+3
| | | | | | | | | | * test/misc/test_ruby_mode.rb (run_emacs): ensure to remove a temporary file. * test/misc/test_ruby_mode.rb (assert_indent): show diff between expected and actual results. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gem_ext_builder.rb: fix wrong skip conditionnobu2014-08-161-1/+1
| | | | | | | | * test/rubygems/test_gem_ext_builder.rb (test_build_extensions_extconf_bad): fix wrong skip condition by removing wrong expace, String#include? does not turn a string argument into a regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rake/backtrace.rb: exclude mere prefixnobu2014-08-162-2/+2
| | | | | | | * lib/rake/backtrace.rb (Rake::Backtrace): exclude mere prefix and exec_prefix, which match too much. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rake/backtrace.rb: remove wrong valuenobu2014-08-161-1/+1
| | | | | | | | * lib/rake/backtrace.rb (Rake::Backtrace::SYS_KEYS): only names end with prefix or libdir, not just include them. libdirname is not a key of path name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: rb_setup_fake_strnobu2014-08-163-19/+15
| | | | | | | * string.c (rb_setup_fake_str): setup fake string from C pointer, length, and encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* node.h: extract NODE functions from gc.cnobu2014-08-163-170/+189
| | | | | | | | * node.h (rb_gc_free_node, rb_node_memsize, rb_gc_mark_node): extract functions for NODE from obj_free(), obj_memsize_of(), gc_mark_children() in gc.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c (time_timespec): fix tv_nsec overflownormal2014-08-162-0/+9
| | | | | | | | | | | | test/ruby/test_float.rb (test_sleep_with_Float) causes tv_nsec to hit 1000000000 exactly. This bug is currently hidden from our test by the platform-dependent native_cond_timeout functions, but a future native_cond_timedwait implementation may prefer relative timeouts to match ConditionVariable#wait semantics more closely. [Bug #10144] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-16svn2014-08-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: fix namenobu2014-08-161-1/+1
| | | | | | * ChangeLog: fix newly added function name. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2014-08-150-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: seperate WIN32OLE_EVENT src fromsuke2014-08-156-1265/+1287
| | | | | | | | | | | win32ole.c. * ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_event.c: ditto. * ext/win32ole/win32ole_event.h: ditto. * ext/win32ole/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (rb_iseq_clone): Should not insert write barrier fromko12014-08-152-1/+8
| | | | | | | | | non-RVALUE data (to non-RVALUE data, of course). Ruby 2.1 also has a same problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (setup_fake_str): fake strings should not set class byko12014-08-153-2/+14
| | | | | | | | | | | | RBASIC_SET_CLASS() because it insert write barriers to fake (non-RVALUE) structure. It can cause unexpected behaviour. Ruby 2.1 also have a same problem (setup_fake_str() in parse.y). * symbol.c (setup_fake_str): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_tmp_new): added.ko12014-08-154-3/+23
| | | | | | | | | | | | This function creates internal use only array (which is completely hided by ObjectSpace.each_object) with filling nil. Otherwise, it can be incldues strange VALUEs. * internal.h: added. * node.h: use rb_ary_tmp_new_fill() for MEMO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c: memsize of T_NODEnobu2014-08-151-5/+11
| | | | | | * gc.c (obj_memsize_of): fix size of T_NODE and comments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/gserver.rb: removed unmaintained code.hsbt2014-08-154-483/+9
| | | | | | | [ruby-core:40313][Feature #5480] * lib/xmlrpc/httpserver.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rb_{thread,context,fiber}_struct: trivial packingnormal2014-08-153-5/+14
| | | | | | | | | | | * vm_core.h (rb_thread_struct): reorder to pack * cont.c (rb_context_struct, rb_fiber_struct): ditto On x86-64, these changes reduces: rb_thread_struct to 1000 bytes (from 1016) rb_context_struct to 1288 bytes (from 1312) rb_fiber_struct to 2272 bytes (from 2304) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_pthread: prefer rb_nativethread* types/functionsnormal2014-08-153-18/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it easier for us to try alternative mutex/condvar implementations while still using pthreads for thread management. [Feature #10134] * thread_pthread.h: define RB_NATIVETHREAD_LOCK_INIT and RB_NATIVETHREAD_COND_INIT macros * thread_pthread.c (native_mutex_lock, native_mutex_unlock, native_mutex_trylock, native_mutex_initialize, native_mutex_destroy, native_cond_wait): use rb_nativethread_lock_t instead of pthread_mutex_t * thread_pthread.c (native_mutex_debug): make argument type-agnostic to avoid later cast. * thread_pthread.c (register_cached_thread_and_wait): replace PTHREAD_COND_INITIALIZER with RB_NATIVETHREAD_COND_INIT, use native_mutex_{lock,unlock} * thread_pthread.c (use_cached_thread): use native_mutex_{lock,unlock} * thread_pthread.c (native_sleep): use rb_nativethread_lock_t to match th->interrupt_lock, use native_mutex_{lock,unlock} * thread_pthread.c (timer_thread_lock): use rb_nativethread_lock_t type git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parser.y: warning with VALUE for rippernobu2014-08-141-3/+28
| | | | | | | * parse.y (ripper_warnV, ripper_warningV): add versions using VALUE for ripper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cont.c (cont_mark): fix typo in unused path [ci skip]normal2014-08-142-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm.c (rb_thread_mark): update comment about marking `me'normal2014-08-142-1/+7
| | | | | | [ruby-core:64340] [ruby-core:64341] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-15svn2014-08-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.EXT: preliminary documentation for RB_GC_GUARDnormal2014-08-142-0/+55
| | | | | | [Bug #10100] [ruby-core:60741] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r46977. [ruby-core:63857] [Bug #10071]akr2014-08-141-2/+6
| | | | | | | | | | | | The removed comment is useful to understand the behind idea to solve the year 2038 problem. The broken link is replaced to refer the internet archive. https://github.com/ruby/ruby/commit/0eed69757dd2bc0eb460a5dc38e377ac8e2cbfd9#commitcomment-7166665 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: investigationnobu2014-08-141-1/+2
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): check if the reader thread is alive before write. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos and styles [ci skip]kazu2014-08-131-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2014-08-130-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-14svn2014-08-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: seperate WIN32OLE_RECORD src fromsuke2014-08-136-573/+602
| | | | | | | | | | | win32ole.c * ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_record.c: ditto. * ext/win32ole/win32ole_record.h: ditto. * ext/win32ole/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2014-08-130-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: seperate WIN32OLE_VARIANT src fromsuke2014-08-136-758/+787
| | | | | | | | | | | win32ole.c. * ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_variant.c: ditto. * ext/win32ole/win32ole_variant.c: ditto. * ext/win32ole/depend: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: preserve encodingsnobu2014-08-132-12/+17
| | | | | | | | * parse.y (shadowing_lvar, warn_unused_var), (reg_named_capture_assign_iter): preserve encodings in warning messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_parse.rb: for warningsnobu2014-08-131-0/+14
| | | | | | * test/ruby/test_parse.rb (TestParse): add tests for parser warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: fix argument ordernobu2014-08-131-1/+1
| | | | | | | * test/ruby/envutil.rb (Test::Test#assert_warning): fix expected and actual results order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e