* test/dtrace/helper.rb (Dtrace::TestCase#trap_probe): dtrace buffer size is set as 8m on Solaris (default 4m). [Bug #11697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20690026a7
commit
7506498f38
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Nov 16 21:27:54 2015 Naohisa Goto <ngotogenome@gmail.com>
|
||||||
|
|
||||||
|
* test/dtrace/helper.rb (Dtrace::TestCase#trap_probe): dtrace buffer
|
||||||
|
size is set as 8m on Solaris (default 4m). [Bug #11697]
|
||||||
|
|
||||||
Mon Nov 16 18:21:52 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Nov 16 18:21:52 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* object.c (rb_obj_dig): dig in nested structs too.
|
* object.c (rb_obj_dig): dig in nested structs too.
|
||||||
|
|
|
@ -26,7 +26,15 @@ module DTrace
|
||||||
d_path = d.path
|
d_path = d.path
|
||||||
rb_path = rb.path
|
rb_path = rb.path
|
||||||
|
|
||||||
cmd = ["dtrace", "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"]
|
case RUBY_PLATFORM
|
||||||
|
when /solaris/i
|
||||||
|
# increase bufsize to 8m (default 4m on Solaris)
|
||||||
|
cmd = [ "dtrace", "-b", "8m" ]
|
||||||
|
else
|
||||||
|
cmd = [ "dtrace" ]
|
||||||
|
end
|
||||||
|
|
||||||
|
cmd.concat [ "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"]
|
||||||
if sudo = @@sudo
|
if sudo = @@sudo
|
||||||
[RbConfig::CONFIG["LIBPATHENV"], "RUBY", "RUBYOPT"].each do |name|
|
[RbConfig::CONFIG["LIBPATHENV"], "RUBY", "RUBYOPT"].each do |name|
|
||||||
if name and val = ENV[name]
|
if name and val = ENV[name]
|
||||||
|
|
Loading…
Reference in New Issue