tmm1
d0d6e2ecfa
* ext/objspace/object_tracing.c: Add experimental methods to dump
...
objectspace as json: ObjectSpace.dump_all and ObjectSpace.dump(obj).
These methods are useful for debugging reference leaks and memory growth
in large ruby applications. [Bug #9026 ] [ruby-core:57893] [Fixes GH-423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 17:06:55 +00:00
svn
6edaaf15e3
* 2013-11-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 15:27:12 +00:00
nobu
7ddf295a4b
file.c: remove unnecessary declaration
...
* file.c (GetLastError): already defined in windows.h on nowadays
cygwin, and caused the confliction with the system provided
definition on cygwin64. by @kou1okada [Fixes GH-433].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 15:26:55 +00:00
glass
53dc9794f0
* lib/open3.rb: receive arguments as keyword arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 09:41:55 +00:00
glass
05a4d176d6
* io.c (rb_io_open_with_args): use RARRAY_CONST_PTR().
...
* io.c (rb_scan_open_args): use const qualifier for above.
* io.c (rb_open_file): ditto.
* io.c (rb_io_open_with_args): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 04:30:40 +00:00
glass
5c54eb4045
* dir.c, pack.c, ruby.c, struct.c, vm_eval.c: use RARRAY_CONST_PTR().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 02:37:47 +00:00
glass
ce89a1c081
* compile.c (iseq_build_from_ary_exception): use RARRAY_CONST_PTR().
...
* compile.c (iseq_build_from_ary_body): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 02:00:35 +00:00
glass
eb86296497
* enumerator.c (append_method): use RARRAY_CONST_PTR().
...
* enumerator.c (lazy_init_iterator): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 01:52:07 +00:00
nobu
74f424c26a
test_logger.rb: clear garbage files
...
* test/logger/test_logger.rb (test_shifting_age_in_multiprocess):
unlink rotated log files all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 18:11:38 +00:00
nobu
1062dcf4df
gc.c: use switch for alternative BUILTIN_TYPE
...
* gc.c (rb_objspace_call_finalizer): BUILTIN_TYPE is alternative,
T_DATA object (Thread, Mutex, Fiber) cannot be T_FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 18:10:33 +00:00
zzak
d24903f063
commit miss from r43573
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 18:04:05 +00:00
ko1
bc31909366
* gc.c (vm_malloc_increase): check GVL before gc_rest_sweep().
...
vm_malloc_increase() can be called without GVL.
However, gc_rest_sweep() assumes acquiring GVL.
To avoid this problem, check GVL before gc_rest_sweep().
[Bug #9090 ]
This workaround introduces possibility to set malloc_limit as
wrong value (*1). However, this may be rare case. So I commit it.
*1: Without rest_sweep() here, gc_rest_sweep() can decrease
malloc_increase due to ruby_sized_xfree().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 18:03:12 +00:00
zzak
10b6409eb3
* lib/securerandom.rb: [DOC] specify arguments passed to ::random_bytes
...
By @chastell [Fixes GH-412] https://github.com/ruby/ruby/pull/412
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:53:42 +00:00
zzak
2cfdbd7d72
* ext/objspace/object_tracing.c: [DOC] trace_object_allocations_stop
...
By @srawlins [Fixes GH-421] https://github.com/ruby/ruby/pull/421
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:44:43 +00:00
zzak
8adbcb6634
* lib/net/ftp.rb: [DOC] Document Net::FTP.mdtm and .set_socket and fix
...
spelling typo, based on patch by @artfuldodger [Fixes GH-426]
https://github.com/ruby/ruby/pull/426
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:38:18 +00:00
zzak
6720c0aeeb
* array.c: [DOC] Add note about negative indices in Array overview
...
By @ckaenzig [Fixes GH-427] https://github.com/ruby/ruby/pull/427
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:15:49 +00:00
zzak
bceb856986
* lib/csv.rb: [DOC] Fix typo in CSV.parse_line by @funky-bibimbap
...
[Fixes GH-430] https://github.com/ruby/ruby/pull/430
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:10:34 +00:00
hsbt
721ec2272c
typo [Fixes GH-435] PAtch by @zed-0xff https://github.com/ruby/ruby/pull/435
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 17:02:56 +00:00
svn
d702ec4af6
* 2013-11-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 16:03:54 +00:00
zzak
b393aeb055
* golf_prelude.rb: syntax formatting for whitespace [Fixes GH-425]
...
Patch by @edward https://github.com/ruby/ruby/pull/425
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 16:03:48 +00:00
ko1
a6698bc676
* gc.c: modify malloc_limit strategy.
...
* fix default vaues:
GC_MALLOC_LIMIT_GROWTH_FACTOR
GC_MALLOC_LIMIT: 8MB -> 16MB
GC_MALLOC_LIMIT_MAX: 384MB -> 32MB
* algorithm of malloc_limit increment.
if (malloc_increase < malloc_limit) {
next_malloc_limit = malloc_limit * factor
if (malloc_limit > malloc_limit_max) {
malloc_limit = malloc_increase
}
}
This algorithm change malloc_limit from
16MB -> 32MB slowly.
If malloc_limit exceeds malloc_limit_max, then
increase with malloc_increase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 10:45:01 +00:00
kazu
2d5233c0f5
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 06:51:09 +00:00
glass
c2f3e600d0
* array.c (rb_ary_shuffle_bang): use RARRAY_PTR_USE() without WB
...
because there are not new relations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 02:08:36 +00:00
glass
cf0838f414
* array.c (rb_ary_sample): use rb_ary_dup().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 01:37:34 +00:00
nobu
cf5ef3db5e
vm_trace.c: isolate errinfo in trace blocks
...
* vm_trace.c (rb_threadptr_exec_event_hooks_orig): errinfo should not
be propagated to trace blocks so that no argument raise does not
throw internal objects. [ruby-dev:47793] [Bug #9088 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-07 00:39:56 +00:00
svn
6f4b9376b3
* 2013-11-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 20:37:17 +00:00
nobu
c9cb1b8e34
* .gdbinit (rp): fix flag name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 20:37:12 +00:00
tarui
01a7e7893b
* gc.c (gc_before_sweep): Change algorithm of malloc_limit to
...
conservative for closing to memory consumption of ruby 2.0.
* gc.c (GC_MALLOC_LIMIT, GC_MALLOC_LIMIT_GROWTH_FACTOR):
Adjust parameters for new algorithm.
Example: make gcbench-rdoc on a pc
time maxrss
2.0.0p343 285.27 281853952
trunk before patch 207.19 690405376
trunk after patch 211.59 312500224
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 12:36:34 +00:00
glass
564a14e497
* array.c (rb_ary_shift_m): use RARRAY_PTR_USE() without WB because
...
there are not new relations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 12:20:39 +00:00
glass
27f2c267fd
* array.c (rb_ary_reverse): use RARRAY_PTR_USE().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 12:09:31 +00:00
tarui
a50ce9498c
* common.mk (help): add texts about gcbench.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 10:32:40 +00:00
duerst
d5f642ecc7
lib/open3.rb: tweaked grammar in comments
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 07:32:56 +00:00
naruse
e7194e9648
Suppress warnings: ambiguous first argument; put parentheses or even spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 06:25:18 +00:00
naruse
e3d72485ca
Suppress warnings: File.exists? is a deprecated name
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 06:23:29 +00:00
naruse
8e2a2a8a8d
Suppress Warnings: instance variable @installed_by_version not initialized
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 06:23:27 +00:00
glass
da10c47e49
* array.c (rb_ary_sample): use RARRAY_AREF() and RARRAY_PTR_USE()
...
instead of RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 02:50:28 +00:00
glass
e90e8b2ef6
* array.c (rb_ary_and): defer hash creation and some refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 01:39:55 +00:00
nobu
71b70f3cdf
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 00:21:05 +00:00
ko1
df6722d9fc
* benchmark/bm_vm1_gc_short_lived.rb: added.
...
These GC benchmarks do not reflect practical applications.
They are only for tuning.
* benchmark/bm_vm1_gc_short_with_complex_long.rb: added.
* benchmark/bm_vm1_gc_short_with_long.rb: added.
* benchmark/bm_vm1_gc_short_with_symbol.rb: added.
* benchmark/bm_vm1_gc_wb_ary.rb: added.
* benchmark/bm_vm1_gc_wb_obj.rb: added.
* benchmark/bm_vm_thread_queue.rb: added.
Thie benchmark is added to know how fast C verion of thread.so.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 00:17:14 +00:00
ko1
3db0e56472
* gc.c: define RGENGC_ESTIMATE_OLDSPACE == 0 if USE_RGENGC is 0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-06 00:14:26 +00:00
eregon
adc4bb95f6
* benchmark/gc/gcbench.rb: fix typo of r43543
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 22:27:27 +00:00
ko1
8c6157e048
* gc.c (Init_GC): add GC::OPTS to show options.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 22:13:51 +00:00
ko1
400a9a7bc2
* benchmark/gc/gcbench.rb: add some options to make quiet.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 22:13:08 +00:00
svn
4b7c15faa7
* 2013-11-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 19:15:46 +00:00
tenderlove
9ae2651d19
* ext/psych/lib/psych/visitors/to_ruby.rb: process merge keys before
...
reviving objects. Fixes GH psych #168
* test/psych/test_merge_keys.rb: test for change
https://github.com/tenderlove/psych/issues/168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 19:15:40 +00:00
akr
7835e321ea
* test/ruby/test_thread.rb (test_thread_join_in_trap):
...
Run the test in a different process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 12:25:15 +00:00
tarui
3ce802b79c
* gc.c (is_live_object): A hidden object may be a live object.
...
[ruby-dev:47788] [Bug #9072 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 11:15:21 +00:00
nobu
7f23534b1f
pty.c: check error of seteuid
...
* ext/pty/pty.c (chfunc): check error of seteuid and return error
message, to suppress unused-value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 08:10:34 +00:00
nobu
b2f7e64caf
test_command_processor.rb: clear tmpdir
...
* test/shell/test_command_processor.rb (TestShell#teardown): should
not leave temporary directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 08:10:32 +00:00
nobu
9d2c2c2b46
eval_intern.h: rename prefix
...
* eval_intern.h (rb_threadptr_tag_state, rb_threadptr_tag_jump):
rename prefix ruby as rb, same as other rb_threadptr functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-05 07:56:51 +00:00