kanemoto
2a5aa8cdaa
time.c: can't compile time.c on AIX due to missing declaration for
...
ffs(). It is declared in strings.h on AIX.
If I need to add something like '&& defined(_AIX)',
please let me know.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-11 14:29:45 +00:00
kosaki
abf99e80bf
* process.c: removed signal() macro. It's no longer used.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-11 06:56:06 +00:00
usa
9826b82038
* ChangeLog: more details.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-11 06:16:39 +00:00
usa
12adf25a80
* numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see
...
rb_num2ulong().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-11 06:03:41 +00:00
kanemoto
e4c452daf8
* thread_pthread.c (get_stack): need to adjust stack addr for
...
[Bug #1813 ] on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 20:39:35 +00:00
kosaki
74b339e938
* thread_pthread.c (rb_thread_create_timer_thread): removed
...
rb_disable_interrupt()/rb_enable_interrupt().
* vm_core.h: ditto.
* process.c (static void before_exec): ditto.
* process.c (static void after_exec): ditto.
[Bug #4765 ] [ruby-dev:43571]
* eval_intern.h: removed rb_trap_restore_mask().
* vm_eval.c (rb_throw_obj): ditto.
* eval.c (setup_exception): ditto.
* signal.c: removed trap_last_mask.
* signal.c (trap_restore_mask): removed.
* signal.c (init_sigchld): comment clarification why signal block
is needed. and removed trap_last_mask operation.
* signal.c (trap_ensure): removed trap_last_mask operation.
* signal.c (rb_disable_interrupt, rb_enable_interrupt): made
static and removed sigdelset(SIGVTALARM) and sigdelset(SIGSEGV).
* process.c (rb_syswait): removed implicit signal handler change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 17:04:40 +00:00
yugui
a4f423f18b
* docs/NEWS-1.9.3: moved from NEWS.
...
* docs/ChangeLog-1.9.3: merged ChangeLog for 1.9.3.
* NEWS: NEWS for 1.9.4 that describes changes since 1.9.3
* ChangeLog: new ChangeLog for 1.9.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 14:54:03 +00:00
yugui
431812bd62
* version.h (RUBY_VERSION): ruby_1_9_3 branch was forked.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 14:31:10 +00:00
mrkn
99f8f14d89
* ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): fix
...
precision treatment errors.
* test/bigdecimal/test_bigdecimal.rb: add tests for the above change.
fix precision treatment errors.
* ext/bigdecimal/bigdecimal.c (BigDecimal_power): precision argument
should be optional for its compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 14:05:07 +00:00
nobu
577c03c713
* parse.y (var_ref): distinguish vcall from local variable
...
references. based on a patch by Michael Edgar michael.j.edgar
AT dartmouth.edu. Bug #5002
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 13:38:17 +00:00
ko1
ce698d4c0d
* internal.h: add comments (cautions).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 12:52:03 +00:00
sorah
7506a580fe
* lib/test/unit.rb: Add new class variable @@testfile_prefix
.
...
This is for changing test name prefix. (For testing)
* test/testunit/tests_for_parallel/ptest_first.rb: Renamed from
test_first.rb
* test/testunit/tests_for_parallel/ptest_second.rb: Renamed from
test_second.rb
* test/testunit/tests_for_parallel/ptest_third.rb: Renamed from
test_third.rb
* test/testunit/tests_for_parallel/ptest_forth.rb: Renamed from
test_forth.rb
* test/testunit/tests_for_parallel/runner.rb: Remove misc.rb
* test/testunit/tests_for_parallel/ptest_first.rb: ditto.
* test/testunit/tests_for_parallel/ptest_second.rb: ditto.
* test/testunit/tests_for_parallel/ptest_third.rb: ditto.
* test/testunit/tests_for_parallel/ptest_forth.rb: ditto.
* test/testunit/tests_for_parallel/misc.rb: Removed because no longer
needed.
* test/testunit/test_parallel.rb: Fix assertions for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 12:19:16 +00:00
ko1
9cf9d5eaf7
* vm_insnhelper.c (vm_throw): check a class frame.
...
Fixes Bug #4648 .
The patch is contributed by Kazuki Tsujimoto.
* bootstraptest/test_proc.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 09:04:44 +00:00
kosaki
b9a13f4962
* thread_pthread.c (mutex_debug): use exit(EXIT_FAILURE) instad of
...
exit(1).
* thread_pthread.c (add_signal_thread_list): ditto.
* thread.c (rb_thread_call_with_gvl): ditto.
* util.c (Bug): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 08:29:46 +00:00
naruse
a2e497d5ed
* ext/json: Merge json gem 1.5.4+ (f7f78896607b6f6226cd).
...
[Bug #4700 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 08:01:04 +00:00
kosaki
a119b9d146
* vm_core.h (typedef struct rb_vm_struct): create a new
...
'inhibit_thread_createion' field.
* thread.c (rb_thread_terminate_all): set inhibit_thread_creation.
* thread.c (thread_s_new): don't permit to create new thread
if the VM is under destruction. Otherwise evil finalizer code
can make SEGV. [Bug #4992 ][ruby-core:37858]
* bootstraptest/test_objectspace.rb: new test for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 07:46:00 +00:00
kosaki
04b182a4f8
add a ticket number.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 07:17:50 +00:00
kosaki
2acd61551b
* signal.c (sigsegv): use abort() instead of exit() when nested
...
SEGV was happen. Because unnested SEGV use abort().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 07:12:02 +00:00
mrkn
564fb6a795
* load.c (rb_f_autoload): prevent to autoload for singleton
...
classes. fixes [Bug #4886 ] [ruby-dev:43816]
* bootstraptest/test_autoload.rb: add tests for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 06:32:06 +00:00
sorah
8c812c9a03
* lib/test/unit/assertions.rb: Import documentation patch by Justin
...
Collins. [ruby-core:37225] [Feature #4903 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 06:11:49 +00:00
tadf
32af4ed47f
* ext/date/date_core.c: canonicalizes nth and sf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 05:59:12 +00:00
ko1
919978a8d9
* internal.h (rb_thread_call_with_gvl, rb_thread_call_without_gvl):
...
make them visible as experimental C APIs. fixes Feature #4328 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 05:19:47 +00:00
mrkn
ebd61e5f28
* ext/bigdecimal/bigdecimal.c (BigDecimal_power): support non-integral
...
exponent. fixes #3271
* ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): ditto.
* ext/bigdecimal/bigdecimal.c (BigDecimal_power_op): add a function to
only use for "**" operator.
* test/bigdecimal/test_bigdecimal.rb: add a bunch of tests for the
above changes.
* ext/bigdecimal/bigdecimal.c (is_integer): add an utility function.
* ext/bigdecimal/bigdecimal.c (is_negative): ditto.
* ext/bigdecimal/bigdecimal.c (is_positive): ditto.
* ext/bigdecimal/bigdecimal.c (is_zero): ditto.
* ext/bigdecimal/bigdecimal.c (is_one): ditto.
* ext/bigdecimal/bigdecimal.c (is_even): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 03:19:49 +00:00
mame
b88daae7ec
* compile.c (when_vals): when a string literal is written on when
...
clause, skip string creation to make it faster. [ruby-dev:44068]
[Feature #5000 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 03:11:52 +00:00
mame
b0f115da1a
* parse.y (reduce_nodes_gen): NODE_RETURN in rescue body must not be
...
reduced when there is an else clause. This caused bizarre behavior
in [Bug #4473 ] [ruby-core:35629] [ruby-core:37884].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 02:42:07 +00:00
tarui
d22e08f937
* range.c (range_max): fix behavior with excluded end value.
...
[Bug #4591 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 00:47:31 +00:00
drbrain
b1d647c809
* NEWS: Fix RubyGems version. [Ruby 1.9 - Bug #5004 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-10 00:13:37 +00:00
tadf
aef7007477
* internal.h: rb_rational_reciprocal is defined in rational.c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 11:06:43 +00:00
tadf
bc11aa72d3
* internal.h: added declarations.
...
* complex.c: followed the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 10:50:51 +00:00
tadf
88b6d5050b
* NEWS: bigdecimal is not a builtin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 08:25:35 +00:00
tadf
057e0a373c
* ext/date/date_core.c: some improvements for performance.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 08:18:57 +00:00
nobu
2a8a9d1def
* atomic.h (ATOMIC_OR): _InterlockedOr is unavailable in VC6.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 07:56:04 +00:00
nobu
03c618daf0
* numeric.c (ULLONG_MAX): fallback definition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 07:54:38 +00:00
nobu
63ab190151
* win32/win32.c (rb_w32_{read,write}): should be signed.
...
Bug #5001
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 06:59:23 +00:00
xibbar
7fd78fad3e
* lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 05:32:19 +00:00
marcandre
1e696acc7e
* lib/matrix.rb: Add Vector#normalize [ruby-dev:43829]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 02:41:14 +00:00
drbrain
d137810d3a
* enumerator.c: Remove "enumeration sequenced by".
...
[Ruby 1.9 - Bug #4757 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 00:25:27 +00:00
drbrain
0c3833ec5a
* io.c: Note that methods other than IO#gets may increase IO#lineno.
...
[Ruby 1.9 - Bug #4902 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-09 00:21:44 +00:00
nobu
dd2dfc71e7
* common.mk (RUN_OPT): disable gems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 23:39:42 +00:00
nobu
dc3697f62f
* io.c (rb_io_close): close(2) on a fd which is being read by
...
another thread causes deadlock on Mac OS X 10.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 23:37:08 +00:00
naruse
e33183acca
* addr2line.c: use USE_ELF instead of __ELF__ because Solaris
...
doesn't define it. USE_ELF is already provided by configure.
patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998 ]
* addr2line.h: ditto.
* vm_dump.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 12:23:10 +00:00
nobu
4902ef7d59
* ext/json/parser/parser.rl (convert_encoding): should not modify
...
the argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 07:40:41 +00:00
nobu
b16fd08622
* ext/json/parser/parser.rl (convert_encoding): no needs to use
...
force_encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 07:39:09 +00:00
nobu
9878d2199c
* error.c (rb_bug): get rid of segfault after all threads
...
disposed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 06:53:33 +00:00
usa
8de18f9cda
* ext/openssl/ossl.h: include openssl/e_os2.h before checking the
...
defition of OPENSSL_SYS_WIN32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 06:03:17 +00:00
usa
fc22563658
* win32/win32.c (wunlink): reverted a part of r32426. it was mistakenly
...
mixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 05:41:52 +00:00
nari
c3e0526269
* configure.in: can't subtract void *.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 05:39:50 +00:00
usa
b4582e79d7
* win32/Makefile.sub (config.h): define GC_MARK_STACKFRAME_WORD.
...
fixed build problem of r32438. the value (30) is temporary value.
maybe it's enough by 20~24 according to my observation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 05:36:57 +00:00
kosaki
554a33d838
* thread.c (rb_mutex_unlock_all): folded into
...
rb_threadptr_unlock_all_locking_mutexes.
* thread.c (rb_threadptr_unlock_all_locking_mutexes) ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 04:50:25 +00:00
kosaki
8741274529
* thread.c (thread_unlock_all_locking_mutexes): rename to
...
rb_threadptr_unlock_all_locking_mutexes and remove static.
* vm_core.h: add rb_threadptr_unlock_all_locking_mutexes declaration.
* thread.c (thread_start_func_2): adjust the above rename.
* eval.c (ruby_cleanup): call rb_threadptr_unlock_all_locking_mutexes
again after finalizer. [Bug #4988 ] [ruby-dev:44049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-08 04:40:01 +00:00