marcandre
59a3d59496
* lib/matrix.rb: Allow non integer exponents for Matrix#**
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:21:24 +00:00
marcandre
004c34f9de
* lib/matrix: Add Eigenvalue Decomposition
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:13:35 +00:00
marcandre
376b825127
* lib/matrix: Add Matrix#round
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 06:10:40 +00:00
naruse
f4dda52025
* string.c (tr_trans): free heap ptr when the str is not embeded.
...
patched by Eric Wong. [Bug #4956 ] [ruby-core:37708]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 05:28:48 +00:00
kosaki
c05fd75bef
* thread.c (do_select): fix memory leak.
...
Patch by Eric Wong. Thank you! [Bug #4953 ] [ruby-core:37702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-01 02:08:48 +00:00
ko1
2e4fb84f7c
* vm_insnhelper.c (vm_getivar): check vm state version
...
to invalidate inline chache (ivar index).
fixes Bug #4926 .
* vm_insnhelper.c (vm_setivar): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 23:23:32 +00:00
nobu
8ad06e2604
* error.c, thread_pthread.c (WRITE_CONST): suppress warnings
...
`ignoring return value'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 23:03:23 +00:00
ko1
fa4514e4fe
* thread.c (rb_threadptr_check_signal): only wake up main thread.
...
* thread.c (rb_threadptr_execute_interrupts_common): check signal
deliverly if it is main thread.
fixes [ruby-dev:44005] [Ruby 1.9 - Bug #4950 ]
* bootstraptest/test_fork.rb: add a test for above.
* signal.c (rb_get_next_signal): skip if signal_buff is empty.
(check signal_buff.size first)
* vm_core.h: remove unused variable rb_thread_t::exec_signal.
* thread.c (rb_thread_check_trap_pending): check
rb_signal_buff_size() because rb_thread_t::exec_signal
is no longer available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 22:29:34 +00:00
nobu
198c2570e7
* sytle fixes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 20:20:32 +00:00
tadf
72be91b5c0
reedited previous commit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:49:04 +00:00
matz
8fca66d7eb
* class.c (Init_class_hierarchy): should name BasicObject
...
explicitly.
* variable.c (rb_const_defined_0): should not check for
superclasses as const_get.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:34:09 +00:00
tadf
bd26a9d656
typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:32:21 +00:00
svn
1d259b64ed
* 2011-07-01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:24:55 +00:00
tadf
6c1e759c3f
* ext/date/date_core.c: mathn still alive (should die soon).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 18:24:50 +00:00
mrkn
be5e17704c
* misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regular
...
expression. Fixes #4546
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 14:54:11 +00:00
emboss
1dcd4b325e
* ext/openssl/ossl.c/.h: Added ossl_x509_name_sk2ary.
...
* ext/openssl/ossl.c: Replaced ossl_x509_ary2k by generic macro to
simplify future conversions.
* ext/openssl/ossl_ssl.c: Implement SSLSocket#client_ca.
* test/openssl/test_ssl.rb: Add test for SSLSocket#client_ca.
Thanks to Ippei Obayashi for providing the patch!
[ Ruby 1.9 - Feature #4481 ] [ruby-core:35461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 14:48:52 +00:00
ko1
c4becf8aaf
* benchmark/bm_vm2_defined_method.rb: added to measure performance of
...
bmethod (method defined by define_method()).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 13:39:50 +00:00
ko1
3bd0566288
add an issue number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 13:35:43 +00:00
ko1
065fe8b7a4
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
...
for methods defined by define_method().
* thread.c (call_trace_proc): Fix to skip if class is not given (0).
Note that ID and Class object are passed for call/return event
if the called method was defined by define_method().
If you are author of tracer/profiler/debugger, this may be an
important change. You should check passed class as zero or
non-zero instead of checking the event type.
* test/ruby/test_settracefunc.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 13:34:53 +00:00
kanemoto
c6ef31c933
configure.in: Add warnflags for XL/C on AIX during configure
...
to avoid [Bug #3971 ]. See [ruby-core:32859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:31:53 +00:00
tadf
1a876fb61e
* ext/date/date_core.c (m_ajd): refers a constant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:17:52 +00:00
nobu
f74f0e4567
* property.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:55:54 +00:00
nobu
3b8f9dc0b0
* ext/io/console/io-console.gemspec: spin-off gem for 1.9.2.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:54:27 +00:00
tadf
1b10d8c327
* ext/date/date_core.c: trivial changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:38:33 +00:00
nobu
00d0d6eab0
* test/ruby/test_rand.rb (test_random_bytes): fold mysteriously
...
long line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:35:04 +00:00
nobu
5700a8601a
* test/ruby/test_module.rb: tests for [Bug #3422 ] and [Bug #3423 ].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:12:38 +00:00
tadf
97772985f0
* ext/date/date_core.c: modified doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:05:24 +00:00
ko1
fa2c1c75a9
* thread_pthread.c (thread_timer): ignore unknown errno.
...
(we observed that select(2) was canceled by errno=514 on
boron == Linux/Xen environment)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 10:11:45 +00:00
ko1
9942e92ca6
add ref to ticket.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 08:38:10 +00:00
ko1
3b32735546
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
...
Fix rdoc.
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
Change key type if the klass of a object is zero (internal object).
Read rdoc for details.
* internal.h: export rb_objspace_data_type_name().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 08:37:06 +00:00
ko1
d49a61e68f
* thread_pthread.c (ping_signal_thread_list, thread_timer):
...
fix to keep polling state if there are any ping-tasks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 08:27:13 +00:00
kazu
0c22e9a001
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 07:31:41 +00:00
ko1
5164677841
* thread_pthread.c (rb_thread_create_timer_thread): allocate
...
machine stack for the timer thread at least 12KB. FreeBSD 8.2
AMD64 causes machine stack overflow (SIGSEGV) only with
PTHREAD_STACK_MIN (maybe defined as 2KB).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 03:34:16 +00:00
naruse
f680230589
Rerefix test introduced by r32307.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 03:31:01 +00:00
naruse
ae56a2ec03
Refix test introduced by r32307.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 03:27:08 +00:00
naruse
5b2300bd6b
Fix test introduced by r32307.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 03:18:12 +00:00
nagachika
b3205aaa70
* ChangeLog: fix some typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 03:13:18 +00:00
drbrain
25513543ff
* lib/weakref.rb: Attach documentation to WeakRef and add missing
...
documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 00:37:00 +00:00
drbrain
8670d55368
* lib/yaml.rb: Document toplevel YAML and YAML::ENGINE to describe
...
Psych vs Syck engines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 00:30:46 +00:00
drbrain
9802a3e7de
* lib/cmath.rb: Hide handle_no_method_error from RDoc.
...
* error.c: Document or hide undocumented error classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 00:22:32 +00:00
drbrain
b57a0d44f9
* hash.c: Document ENV
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 00:20:15 +00:00
nobu
65c2fec50c
* ruby.c (ruby_init_loadpath_safe): ensure RUBYLIB_PREFIX stored
...
before RUBYLIB, even if MANGLED_PATH is enabled. fixed #1679 .
MANGLED_PATH is disabled by the default and will be removed
completely in the future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:37:48 +00:00
nobu
7ed1803137
* ChangeLog: garbages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:37:45 +00:00
drbrain
7c30ffb92d
* lib/drb/drb.rb: Hide deprecated toplevel DRb constants.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:33:36 +00:00
naruse
eaa572e57d
* lib/cmath.rb (CMath.log): second argument: b can be nil.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:25:03 +00:00
drbrain
be9d096cc9
* thread.c (ruby_thread_s_pass): Fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:23:36 +00:00
drbrain
e75e7fcc9f
* lib/rdoc: Update to RDoc 3.8 which contains fixes for documentation
...
in trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 21:17:31 +00:00
kosaki
6f1ce28d62
* thread.c (rb_threadptr_execute_interrupts_common): remove
...
meaningless native_thread_yield(). It never close a race.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 17:55:03 +00:00
kosaki
c90ff68d32
* thread.c (rb_thread_schedule_limits): minor optimization.
...
eliminate machine context saving when running time is enough small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 17:43:58 +00:00
kosaki
5e15194561
* thread.c (rb_thread_schedule_rec): move interrupt_flag check to
...
rb_thread_schedule().
And also rename to rb_thead_schedule_limits() and remove
sched_depth argument. It's no longer called recursive.
* thread.c (rb_thread_schedule): add to check interrupt_flag as
above explained.
* thread.c (rb_threadptr_execute_interrupts_rec): rename to
rb_threadptr_execute_interrupts_common() and remove sched_depth
argument. It's no longer called recursive.
* thread.c (rb_thread_sleep): adapt the renaming.
* thread.c (rb_threadptr_execute_interrupts): ditto.
* thread.c (rb_thread_execute_interrupts): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 17:36:00 +00:00