Project

General

Profile

Activity

From 09/09/2014 to 09/15/2014

09/15/2014

07:00 PM Bug #10231: Process.detach(pid) defines new singleton classes every call
Eric Wong wrote:
> I prefer deliberately leaving out Process::Waiter and Thread references,
> ...
FWIW, JVM always does a waiter thread to avoid multiple calls to waitpid (which as you know returns results exactly once). The waiter th...
headius (Charles Nutter)
04:18 PM Revision 279086dd (git): * 2014-09-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:18 PM Revision d2a53542 (git): * reg*.c: Merge Onigmo 5.15.0 38a870960aa7370051a3544
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:26 PM Bug #9971: potential stack overflow check deadlock (fixed at r46495)
まだ完全ではないとのことでしたが、念のため r46495 と r46499 を r47597 で `ruby_2_1` へバックポートしました。 nagachika (Tomoyuki Chikanaga)
02:23 PM Revision 155b12e6 (git): merge revision(s) r46495,r46499: [Backport #9971]
signal.c: no cfunc frame at stack overflow
* signal.c (check_stack_overflow): avoid pushing a cfunc frame,
trying to fix stack overflow deadlock.
* signal.c (check_stack_overflow): drop the last tag too close to
...
nagachika (Tomoyuki Chikanaga)
02:11 PM Bug #10242: Backport r47591 (Pathname#relative_path_from crash)
Backported into `ruby_2_1` branch at r47596. nagachika (Tomoyuki Chikanaga)
01:22 PM Bug #10242 (Closed): Backport r47591 (Pathname#relative_path_from crash)
r47591 で修正された pathname.rb の当該箇所は 2.0.0 と 2.1 でも同様で、Encodingが異なる文字列でString#casecmpがnilを返す点も同じなので同様の問題があると思います。
バックポート管理用チケットなのでClosed状態で作成します。
nagachika (Tomoyuki Chikanaga)
02:11 PM Revision e54ec54d (git): merge revision(s) r47591: [Backport #10242]
* ext/pathname/lib/pathname.rb (SAME_PATHS):
Pathname#relative_path_from uses String#casecmp to compare strings
on case-insensitive filesystem platforms (e.g., Windows). This can
return nil for strings with ...
nagachika (Tomoyuki Chikanaga)
01:33 PM Bug #10241: Backport r47590 (fix a typo in fiddle/import.rb)
Backported into `ruby_2_1` branch at r47595. nagachika (Tomoyuki Chikanaga)
01:10 PM Bug #10241 (Closed): Backport r47590 (fix a typo in fiddle/import.rb)
r47590 で修正された typo は 2.0.0, 2.1 にもあります。
バックポート管理用チケットなので Close 状態で作成します。
nagachika (Tomoyuki Chikanaga)
01:33 PM Revision eba7b76c (git): merge revision(s) r47590: [Backport #10241]
* ext/fiddle/lib/fiddle/import.rb (Fiddle::Importer#sizeof): fix typo,
SIZEOF_LONG_LON. [Fix GH-714]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
07:38 AM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
Salutations,
First Last wrote:
> Tsuyoshi Sawada wrote:
> ...
I wonder if this might be a circumstance where the Unix
philosophy of preferring shorter names for frequently used
operations might apply.
#key? must be presumably o...
spatulasnout (B Kelly)
07:31 AM Revision d198d64e (git): trivial packing for on-stack structs
* io.c (struct io_advise_struct): 32 => 24 bytes on 64-bit
* io.c (struct io_internal_writev_struct): 24 => 16 bytes on 64-bit
* process.c (struct waitpid_arg): ditto
Slightly reduce stack pressure.
git-svn-id: svn+ssh://ci.ruby-lang.o...
Eric Wong
07:17 AM Revision 667d502a (git): benchmark/bm_app_aobench.rb: spelling fix [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
02:12 AM Bug #8315: mkmf does not include include paths from pkg_config anymore
Sorry, r47587 breaks build of digests/*.
I overlooked r44459 and r44460 because they seems a new feature (and there's no ticket for these commits).
But I think r44459 is rather a bug fix for degrade introduced by r39994.
I additiona...
nagachika (Tomoyuki Chikanaga)
02:08 AM Revision d67632d2 (git): merge revision(s) r44459,r44470: [Backport #8315]
* lib/mkmf.rb (configuration): Make CXXFLAGS customizable.
Patch by Kohei Suzuki (eagletmt). [Fixes GH-492]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:29 AM Revision 8ae989f6 (git): pathname.rb: fix a Pathname#relative_path_from crash on
* ext/pathname/lib/pathname.rb (SAME_PATHS):
Pathname#relative_path_from uses String#casecmp to compare strings
on case-insensitive filesystem platforms (e.g., Windows). This can
return nil for strings with different encodings, and...
nobu (Nobuyoshi Nakada)
12:45 AM Bug #10235 (Rejected): make fails to configure OpenSSL on OS X 10.9.4 (Mavericks)
hsbt (Hiroshi SHIBATA)
12:43 AM Revision 065b6d2b (git): fiddle/import.rb: fix typo
* ext/fiddle/lib/fiddle/import.rb (Fiddle::Importer#sizeof): fix typo,
SIZEOF_LONG_LON. [Fix GH-714]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/14/2014

11:13 PM Revision 80f43199 (git): * 2014-09-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:13 PM Revision 230b845f (git): sprintf.c: improve rational 'f' format
* sprintf.c (rb_str_format): rational 'f' format works for more
values. [fix GH-717]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 PM Feature #10240: `String#to_a`
I understand your intention, but I think proposed behavior is bit awkward for `to_a` of String class.
As you know `to_a` stands for conversion to array, I don't think `""` -> `[]` is natural conversion from strings.
Matz.
matz (Yukihiro Matsumoto)
02:51 PM Feature #10240 (Rejected): `String#to_a`
I often want to exclude the empty strings from an array of strings. A use case is to join an array of strings with `", "`, removing the empty ones, as follows:
```ruby
["Foo", "", "Bar"].reject(&:empty?).join(", ") # => "Foo, Bar"
`...
sawa (Tsuyoshi Sawada)
06:29 PM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
I guess the culture gap (not language gap) is leading to imbroglio in this case.
http://en.wikipedia.org/wiki/High-_and_low-context_cultures
Many Japanese people feel comfortable with "hash.key?(:foo)", because they are in a higher...
mame (Yusuke Endoh)
05:00 AM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
First Last wrote:
> That the conjugation can be off is nothing, next to not knowing what question is being asked.
Then, it is not "in the interest of maximizing the English readability and sensibility." It is a matter of semantics.
sawa (Tsuyoshi Sawada)
04:43 AM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
Tsuyoshi Sawada wrote:
> I don't understand how `has_key?` is better
I already explained it, all I can do is restate it.
When the predicate consists of a just single noun or adjective, there is only enough information in it to ask...
rits (First Last)
04:15 AM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
`has_key?` is one of the few exceptions to the naming convention in that it uses the third person singular present form of a verb. To keep the method names as general as possible, it is better to use the most general form of a verb and a... sawa (Tsuyoshi Sawada)
04:15 PM Bug #8315: mkmf does not include include paths from pkg_config anymore
Backported into `ruby_2_1` branch at r47587. nagachika (Tomoyuki Chikanaga)
04:13 PM Revision fa9c5230 (git): merge revision(s) r47457: [Backport #8315]
* lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
$CXXFLAGS, as they are often used by C++ compiler.
[ruby-core:54532] [Bug #8315]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47587 b...
nagachika (Tomoyuki Chikanaga)
03:31 PM Bug #10218 (Closed): 手続きを再帰するとSegmentation faultが発生する
おっしゃる通り #9454 や #9945 と同様で、 trunk では修正済み、2.1 ブランチでも(おそらく 2.0.0 でも)同様の修正が取り込まれているはずです。(RubyCI では稀にまだ失敗することがあるようですが)。 nagachika (Tomoyuki Chikanaga)
03:26 PM Bug #9766: Add force_encoding option to csv
r46391 and r46395 were backported into `ruby_2_1` branch at r47586. nagachika (Tomoyuki Chikanaga)
03:25 PM Revision 7139427c (git): merge revision(s) r46391,r46395: [Backport #9766]
* lib/csv.rb (CSV#<<): honor explicity given encoding. based on
the patch by DAISUKE TANIWAKI <daisuketaniwaki AT gmail.com> at
[ruby-core:62113]. [Bug #9766]
* lib/csv.rb (CSV#<<): honor explicitly given e...
nagachika (Tomoyuki Chikanaga)
02:47 PM Bug #9907: Abbreviated method assignment with private attr_writer/attr_reader does not work.
This seems a spec change for me. Any comments? nagachika (Tomoyuki Chikanaga)
10:23 AM Feature #10017: Add `Hash#fetch_values`
For the reason Andrew pointed out, I also prefer `#fetch_values`.
Maybe we need to conduct voting?
Matz.
matz (Yukihiro Matsumoto)
09:56 AM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
Curious behaviour indeed, there may be a reason why symlinks were assumed to behave differently. shevegen (Robert A. Heiler)
09:54 AM Bug #10239 (Closed): Regexp.quote() and default encoding
Hello,
I am not sure if this is a bug, or unexpected behaviour (for me).
I will simply report it, I am sure you guys know how and if to
handle this anyway.
I believe it should be documented at least in the official documentati...
shevegen (Robert A. Heiler)
07:58 AM Revision 7b09deef (git): vm.inc.tmpl + instruction.rb: typo fixes
* template/vm.inc.tmpl: "insns.c" => "insns.def"
* tool/instruction.rb: typo fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
03:30 AM Revision ee04ba60 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:30 AM Revision b41b613e (git): * test/test_tracer.rb: fixed testcase for rubygems update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
03:30 AM Revision 4de117a6 (git): * lib/rubygems: Update to RubyGems 2.4.1 master(713ab65)
Complete history at:
https://github.com/rubygems/rubygems/blob/master/History.txt#L3-L216
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:04 AM Revision e548c09d (git): * ext/psych/lib/psych.rb: update version
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
01:56 AM Revision e5a3c25a (git): compile.c, gc.c: suppress warnings
* compile.c (iseq_compile_each): suppress implicit conversion
warning by old apple gcc 4.2.
* gc.c (RVALUE_FLAGS_AGE, heap_page_allocate): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47580 b2dd03c8-39d4-4d8f-98ff-823fe69...
nobu (Nobuyoshi Nakada)
12:28 AM Feature #10228: Statistics module
The Ruby/GSL gem provides a Ruby interface to GSL which provides a great deal of statistical functionality and much more besides. Maybe that would meet your needs?

On Sep 13, 2014, at 3:56 PM, shevegen@gmail.com wrote:

> Issue #1...
david_macmahon (David MacMahon)
12:16 AM Feature #10238 (Assigned): todo: remove dependency on malloc_usable_size
malloc_usable_size shows up at or near the top of many profiles for me.
We should be able to use ruby_sized_xfree in more places; especially
if rb_data_type_t->dsize is defined.
One possible improvement is to allow the rb_data_typ...
normalperson (Eric Wong)

09/13/2014

11:58 PM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
ko1@atdot.net wrote:
> 4. Should we use it on compile.c?

Yes, and probably gc.c, too. I think it would help improve readability
and remove some branches in our current code.

I have submitted patches for list_add_after, list_add...
normalperson (Eric Wong)
11:49 PM Revision e7f6d9e2 (git): ccan/container_of: add container_of_or_null
* ccan/container_of/container_of.h (container_of_or_null): added
[ccan 7ec5b8e06b2fd5fa98b1fcde1158c286d2d429d8] (David Gibson)
It's quite common to have a pointer which could be either a pointer to a
structure member, or NULL. This ...
Eric Wong
11:49 PM Revision a5fc33c0 (git): * 2014-09-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:49 PM Revision c975dc96 (git): ccan/list: new list_{del,node}_init functions
* ccan/list/list.h (list_del_init, list_node_init): new functions
for multiple list_del() calls
[ccan ec8654d94d3c5c47aa5f82698f7e8048c79765b1] (Rusty Russell)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47577 b2dd03c8-39d4-4d...
Eric Wong
11:28 PM Feature #10177: Hash#has_key? and Hash#has_value? should be deprecated
@Robert A. Heiler
@First Last
@Jeremy Evans
Thank you so much for replying. I could acquire new point of view. I really appreciate it.
I got your point why has_key? is better than key?.
As First Last said,
> So hash.key? r...
gogotanaka (Kazuki Tanaka)
10:59 PM Feature #10237 (Open): Transform all elements of one Encoding into another Encoding for Array and Hash
I find myself to sometimes have to convert one encoding to the other.
For string objects, this is trivial:
.encode()
.force_encoding()
For reading in a file via File.readlines(), this is also
simple because of stuff like:
...
shevegen (Robert A. Heiler)
10:56 PM Feature #10228: Statistics module
I concur that statistics would be useful.
For bioinformatics I am forced to use R (http://www.r-project.org/) right now.
Hopefully I can one day replace all of why I have to use R with Ruby (I guess the
biggest problem are not the...
shevegen (Robert A. Heiler)
10:45 PM Bug #10236 (Closed): [PATCH] test_modify_expand.rb: increase limit for {je,tc}malloc
In this test, jemalloc and tcmalloc are both more hesitant to
release memory to the kernel than the stock glibc allocator.
Tested on jemalloc 3.6.0 (self-built) and libtcmalloc-minimal 2.0-2
(Debian package) on x86_64-linux
normalperson (Eric Wong)
09:21 PM Feature #10059: [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
@Naohisa Goto さん
なるほど、そちら面白いですね.
しかし、そちらの場合はむしろドキュメントが生成されない方が好ましい気もしますし
`method_define` を用いた場合は生成されて欲しいです.
(実際に定義されたものを必要十分にドキュメントは生成すべきと考えます)
RDocの方に投げかけてみたいと思います.
ともあれご教授ありがとうございました. 非常によい見地を頂きました.
gogotanaka (Kazuki Tanaka)
04:51 PM Bug #10235: make fails to configure OpenSSL on OS X 10.9.4 (Mavericks)
Please close, installing OpenSSL under my home directory appears to have resolved the problem (though the permissions on /usr/local/ssl looked ok). opt1c (opt1c -)
02:21 PM Bug #10235: make fails to configure OpenSSL on OS X 10.9.4 (Mavericks)
Also, from what I read it sounds like libsocket and libnsl are part of libc on Darwin. opt1c (opt1c -)
02:08 PM Bug #10235 (Rejected): make fails to configure OpenSSL on OS X 10.9.4 (Mavericks)
"Failed to configure openssl. It will not be installed."
OPENSSL
-------
$ which openssl
/usr/local/ssl/bin/openssl
$ openssl version
OpenSSL 1.0.1i 6 Aug 2014
As recommended by: https://www.ruby-lang.org/en/news/2014/04/10/...
opt1c (opt1c -)
01:19 PM Revision f3c9ffe0 (git): hash.c: [DOC] fix for Hash#store docs
* hash.c (rb_hash_aset): fix misleading example which may suggest
that Hash.store will return self instead of value - Hash#store
is returning value and update itself, as well as Hash#[]=.
[Fix GH-715]
git-svn-id: svn+ssh://ci.ruby...
nobu (Nobuyoshi Nakada)
01:07 PM Revision ab22202a (git): class.c: simplify
* class.c (singleton_class_of): use local variable and remove
duplicated member access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:03 PM Revision 4df147d6 (git): class.c: freeze meta class only
* class.c (singleton_class_of): should not propagete freezing to
meta meta class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:49 AM Misc #10233: iseq.cのget_line_info()でバイナリサーチを使うように修正するか
Koichi Sasada wrote:
> ありがとうございます。
> ...
これでよいかちょっとわからないのですが、一応とってみました。
添付のbenchmark_short/long.rbをパッチとパッチを当てる直前のコミットで比較してあります。
結果がbenchmark_log.txtです。
内容としては例外が主な用途だろうということでその場合の動作で見ています。
特に有意差はなさそうな感じですね。。。複雑になるだけかもしれない。
...
shiracha (Rikyu Shiracha)
06:17 AM Revision 05b374b8 (git): class.c: use ALLOC(rb_subclass_entry_t)
It is easier to search for allocations by type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
05:14 AM Revision d2e3c034 (git): simplify some trivial rb_data_type_t callbacks
* process.c (free_exec_arg): remove
(memsize_exec_arg): ptr is never NULL
(exec_arg_data_type): use RUBY_TYPED_DEFAULT_FREE
* variable.c (autoload_i_free): remove
(autoload_data_i_type): use RUBY_TYPED_DEFAULT_FREE
(autoload_mem...
Eric Wong
04:44 AM Revision 161deb21 (git): doc/NEWS-2.0.0: fix typo for default RUBY_FIBER_MACHINE_STACK_SIZE
Checked against definition in vm_core.h
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
04:40 AM Feature #10197: document RUBY_* stack size/GC params in ruby.1 manpage
Work-in-progress here with *_STACK_SIZE.
I added a header section hopefully clarifying the difference between
VM vs. machine stack size changes.
This manpage feels a bit long, I think the FEATURES section should be moved to a
new r...
normalperson (Eric Wong)
02:58 AM Bug #10206: garbage symbols crash symbol GC
(2014/09/13 7:59), Eric Wong wrote:
>> 1. make all IDs permanent, as ko1 claims

+1

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
01:29 AM Bug #10206 (Closed): garbage symbols crash symbol GC
Applied in changeset r47569.
----------
parse.y: intern_cstr
* parse.y (intern_cstr): remove `_without_pindown` suffix and use
rb_intern3() as well as RIPPER, for the time being.
[ruby-core:65009] [Bug #10206]
nobu (Nobuyoshi Nakada)
02:28 AM Revision 5b800bef (git): * ext/win32ole/win32ole_event.c(ev_advise, ole_event_free,
fev_s_allocate, fev_unadvise): avoid segmentation fault when COM
server freed before calling Unadvise from WIN32OLE_EVENT object.
* ext/win32ole/win32ole.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47570 b2dd03c8-39d4...
suke (Masaki Suketa)
01:28 AM Revision da7475b0 (git): parse.y: intern_cstr
* parse.y (intern_cstr): remove `_without_pindown` suffix and use
rb_intern3() as well as RIPPER, for the time being.
[ruby-core:65009] [Bug #10206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47569 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
01:22 AM Revision 0fa95536 (git): eval.c: fix message as same as previous versions
* eval.c (rb_frozen_class_p): fix message for singleton class of
class/module as same as previous versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:48 AM Revision 92c1d1a9 (git): man/ruby.1: use https for *.ruby-lang.org links
Avoid redirects which may be MitM-ed and slow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
12:47 AM Revision bf1c869b (git): test_yield.rb: use temporary instance
* test/ruby/test_yield.rb (test_with_enum): use temporary
instance, do not define a method on the global class object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/12/2014

11:11 PM Bug #10206: garbage symbols crash symbol GC
nobu@ruby-lang.org wrote:
> One problem about it is ripper.
> ...
nobu: can you fix this in time for 2.2.0-preview1 release?
Otherwise, I propose the following temporary fix:
~~~diff
--- a/parse.y
+++ b/parse.y
@@ -285,7 +285,...
normalperson (Eric Wong)
09:34 PM Revision 2e33fdfb (git): vm.c (thread_alloc): remove needless volatile
If we needed a volatile there, every other alloc function would need it.
There is nothing special I can see about thread_alloc which would
justify it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47565 b2dd03c8-39d4-4d8f-98ff-823fe...
Eric Wong
09:34 PM Revision 1972a313 (git): proc/env DATA_PTR is never NULL
* proc.c (proc_free): remove, use RUBY_TYPED_DEFAULT_FREE
(proc_mark, proc_memsize): remove needless branching
* vm.c (env_free): remove, use RUBY_TYPED_DEFAULT_FREE
(env_mark, env_memsize): remove needless branching
This shows a t...
Eric Wong
09:30 PM Bug #10234 (Third Party's Issue): /v8/function.rb:13: [BUG] Segmentation fault at 0x00000000000000
The SEGV was caused in therubyracer.
Please ask the author first.
usa (Usaku NAKAMURA)
09:16 PM Bug #10234 (Third Party's Issue): /v8/function.rb:13: [BUG] Segmentation fault at 0x00000000000000
When I run less with ruby 2.1.2p95, the following error happens
/usr/lib/ruby/gems/2.1.0/gems/therubyracer-0.12.0/lib/v8/function.rb:13: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-l...
raysen.jia (Raysen Jia)
08:58 PM Revision bb2cec10 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:57 PM Revision ec475ab3 (git): proc.c (rb_proc_alloc): inline and move to vm.c
* proc.c (rb_proc_alloc): inline and move to vm.c
(rb_proc_wrap): new wrapper function used by rb_proc_alloc
(proc_dup): simplify alloc + copy + wrap operation
[ruby-core:64994]
* vm.c (rb_proc_alloc): new inline function
(rb_vm...
Eric Wong
08:42 PM Bug #10231: Process.detach(pid) defines new singleton classes every call
headius@headius.com wrote:
> Eric Wong wrote:
> > I haven't checked the inits.c ordering change closely, but
> > make check and test-rubyspec passes:
>
> +1 This is how I'd fix it.

Committed with nobu's comments as r47561
Pro...
normalperson (Eric Wong)
07:42 PM Bug #10231 (Closed): Process.detach(pid) defines new singleton classes every call
Applied in changeset r47561.
----------
Process.detach: avoid singleton class creation
* process.c (Init_process): subclass Thread as Process::Waiter
(rb_detach_process): use Process::Waiter instead of singleton class
* test/ruby/te...
Anonymous
02:52 PM Bug #10231 (Assigned): Process.detach(pid) defines new singleton classes every call
Probably, you can use `rb_undef_alloc_func`.
And should join the waiter thread.
nobu (Nobuyoshi Nakada)
01:46 PM Bug #10231: Process.detach(pid) defines new singleton classes every call
Eric Wong wrote:
> I haven't checked the inits.c ordering change closely, but
> ...
+1 This is how I'd fix it.
headius (Charles Nutter)
07:42 PM Revision afa512d9 (git): Process.detach: avoid singleton class creation
* process.c (Init_process): subclass Thread as Process::Waiter
(rb_detach_process): use Process::Waiter instead of singleton class
* test/ruby/test_process.rb (test_process_detach): new test
* inits.c (rb_call_inits): call Init_Threa...
Eric Wong
06:11 PM Feature #10077: [PATCH] Implement Matrix#row_merge and Matrix#column_merge
FWIW, Matlab calls these operations "horzcat" (for "horizontal concatenation") and "vertcat" (for "vertical concatenation"). I personally find these names less ambiguous than "row_merge" and "column_merge". IMHO, the name "row_merge" ... david_macmahon (David MacMahon)
05:11 PM Feature #10077: [PATCH] Implement Matrix#row_merge and Matrix#column_merge
@Hiroshi SHIBATA san
Thank you so much!
いつもありがとうございます. 助かっています.
gogotanaka (Kazuki Tanaka)
06:22 AM Feature #10077 (Assigned): [PATCH] Implement Matrix#row_merge and Matrix#column_merge
hsbt (Hiroshi SHIBATA)
04:13 AM Feature #10077: [PATCH] Implement Matrix#row_merge and Matrix#column_merge
Is there anything I should do with? gogotanaka (Kazuki Tanaka)
03:39 PM Revision 5311e0af (git): * 2014-09-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:39 PM Revision f52dc332 (git): ext/Setup.nacl: remove trainling space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:21 PM Revision 8c62365f (git): set svn:ignore
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:45 PM Misc #10233: iseq.cのget_line_info()でバイナリサーチを使うように修正するか
とりあえずインデントは揃えてください。 nobu (Nobuyoshi Nakada)
12:21 PM Misc #10233: iseq.cのget_line_info()でバイナリサーチを使うように修正するか
ありがとうございます。
性能評価みたいなことって出来ますか?
(短いと、実は、線形サーチのほうが速かったりして)
ko1 (Koichi Sasada)
11:50 AM Misc #10233 (Closed): iseq.cのget_line_info()でバイナリサーチを使うように修正するか
以下のPullRequestを投げさせていただきました。
https://github.com/ruby/ruby/pull/712
TODOコメントがあって気になったのでその通りの修正をとりあえず作ってみた形です。
ただむしろlinear searchのままにしておいて、コメントを
「ここは主にエラーハンドリングやデバッグに利用される部分でシンプルに保ちたいのでlinear searchを使っている」
という形に修正するべきかもしれない。とも思って迷...
shiracha (Rikyu Shiracha)
02:25 PM Revision 3889eaca (git): ruby/ruby.h: freeze singleton class
* include/ruby/ruby.h (rb_obj_freeze_inline): propagate freezing
to the singleton class if it is existing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:21 PM Feature #9816: 文字列内の数字を数値として比較するメソッド
Yui NARUSE wrote:
> 熟考の結果、Gem::Versionと仕様をあわせました。
> ...
よくわからなかったので試してみたのですが、
Ruby のバージョンの比較ができるというのは、
preview, rc, patch release の順に並ぶという意味ではないですよね?
(そうしたいという話ではありません。)
~~~
% cat t.rb
puts %w[
1.9.2-preview1
1.9.2-preview3
...
akr (Akira Tanaka)
02:16 PM Revision 4817ab23 (git): follow RIncGC
* .gdbinit (rp), debug.c (RUBY_FL_PROMOTED): follow RIncGC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:11 PM Revision 24b03b32 (git): readline.c: use rb_setup_fake_str
* ext/readline/readline.c (readline_s_delete_text): initialize a
fake string by rb_setup_fake_str().
* internal.h (rb_setup_fake_str): allow extensions to call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47555 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
12:51 PM Bug #10221: You may have encountered a bug in the Ruby interpreter or extension libraries.
klaus dieter wrote:
> is there a workaround for this?
Please report to therubyracer's issue tracking.
https://github.com/cowboyd/therubyracer
hsbt (Hiroshi SHIBATA)
12:36 PM Bug #10221: You may have encountered a bug in the Ruby interpreter or extension libraries.
is there a workaround for this? dwarf (klaus dieter)
12:17 PM Revision 858d1cad (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:16 PM Revision 2a9e679d (git): fix typos and indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:28 AM Bug #10212: MRI is not for lambda calculus
SASADA Koichi <ko1@atdot.net> wrote:
> (2014/09/12 19:03), Eric Wong wrote:
> > Yes, I think the following API is OK. rb_proc_t is big.
> > The new inline rb_proc_alloc() takes 7(!) parameters.
> > Maybe we can drop klass since tha...
normalperson (Eric Wong)
10:19 AM Bug #10212: MRI is not for lambda calculus
(2014/09/12 19:03), Eric Wong wrote:
> Yes, I think the following API is OK. rb_proc_t is big.
> The new inline rb_proc_alloc() takes 7(!) parameters.
> Maybe we can drop klass since that is always rb_cProc.

Nice.

Additionally...
ko1 (Koichi Sasada)
10:10 AM Bug #10212: MRI is not for lambda calculus
ko1@atdot.net wrote:
> Eric Wong wrote:
> > Any comment? I think the improvement is worth it since proc allocation
> > only happens in 2 places, and env allocation in 1 place.
>
> For me, +1 for Env, but -1 for Proc.

OK, com...
normalperson (Eric Wong)
02:09 AM Bug #10212: MRI is not for lambda calculus
Eric Wong wrote:
> Any comment? I think the improvement is worth it since proc allocation
> ...
For me, +1 for Env, but -1 for Proc.
For Env, allocation part is merged, and easy to be careful.
However, rb_proc_alloc() can be call...
ko1 (Koichi Sasada)
09:22 AM Revision ea6de7a2 (git): vm.c (env_alloc): inline to avoid extra zeroing
tiny speedup [ruby-core:64980]
benchmark results:
Execution time (sec)
name trunk built
app_lc_fizzbuzz 100.411 98.692
Speedup ratio: compare with the result of `trunk' (greater is better)
name built
app_lc_fizzbuzz 1.017
rb_p...
Eric Wong
08:13 AM Revision b41909f6 (git): vm_method.c: should not modify frozen objects
* vm_method.c (rb_method_entry_make, remove_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:44 AM Revision 94ee7c47 (git): ruby/ruby.h: move comments
* include/ruby/ruby.h (enum ruby_special_consts): move bit pattern
comments side-by-side.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Bug #8982: NoMethodError#message produces surprising output when #inspect is defined on an anonymous class
So I've run into this issue again, and as it turns out, this is a much more widespread problem than I first thought. I originally thought that this was just a problem with anonymous classes, but that's not the case; now I'm running up a... myronmarston (Myron Marston)
05:40 AM Revision 6f3fb65e (git): * gems/bundled_gems: Upgraded to test-unit-3.0.1 and minitest-5.4.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
05:04 AM Feature #10059: [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
現在のRDocの挙動では、以下のように、メソッド定義そっくりだが実際には定義されない文を記述しておくと、メソッドは定義されないがRDocには反映されるので、私はそれを活用しています。
ただし、これが本当に正しいのか、単に現在のRDocの挙動に依存しているだけなのか、はわかりません。
~~~
# このabcdeメソッドの説明文。
# 説明文続き。
# 説明文続き。
def abcde(f="g") end if false
~~~
ngoto (Naohisa Goto)
04:26 AM Feature #10059: [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
Feedbackを頂いたのにも関わらず、見落としておりました.
失礼しました.
Akira Tanaka wrote:
> ふとパッチを見たのですが、これって rdoc で生成されるドキュメントはどうなるのでしょうか。
試みたところ、期待されるモノは生成されませんでした.
rdocの部分を除いても、このfeature自体、見直す余地がありますので一旦取り下げさせて頂きたいと考えております.
蛇足となりますが、`method_define`...
gogotanaka (Kazuki Tanaka)
03:31 AM Bug #10232: Trivial change of IMMEDIATE VALUE bits layout
Eric Wong wrote:
> > Strange thing is: vm1_const
> ...
I agree.
ko1 (Koichi Sasada)
03:10 AM Bug #10232: Trivial change of IMMEDIATE VALUE bits layout
ko1@atdot.net wrote:
> (1) can be incompatibility issue so that I don't propose this fix strongly.
> Interpreter core doesn't depends on this spec, but C-exts can be affected.

I think the only thing I've seen C-exts depend on is Qf...
normalperson (Eric Wong)
01:27 AM Bug #10232 (Rejected): Trivial change of IMMEDIATE VALUE bits layout

The following patch improves performance a bit.
```
!USE_FLONUM
-------------------------
...xxxx xxx1 Fixnum
...0000 1110 Symbol
...0000 0000 Qfalse
...0000 0010 Qtrue
...0000 0100 Qnil
...0000 0110 Qundef
USE_FLONUM
--...
ko1 (Koichi Sasada)
02:37 AM Bug #10191: Possible memory leak using dup and setting an unassigned instance variable (Windows)
backported into `ruby_2_0_0` at r47548.
In my environment, I don't have to change the limit of assert_no_memory_leak.
I may change it if CIs report some problems.
usa (Usaku NAKAMURA)
02:36 AM Revision 9f67424d (git): merge revision(s) 46501,47372,47460: [Backport #10191]
* object.c (rb_obj_copy_ivar): extract function to copy instance
variables only for T_OBJECT from init_copy.
* object.c (rb_obj_copy_ivar): allocate no memory for empty
instance variables. [ruby-core:64700] ...
U.Nakamura
02:33 AM Bug #9344: warning origin incorrect with instance_eval
committed into `ruby_2_0_0` at r47547. usa (Usaku NAKAMURA)
02:32 AM Revision 97acdd71 (git): * regcomp.c: Merge Onigmo 988517a4f16f14acbd7cc9d5b51a096d5153992c.
[Bug #9344].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:23 AM Bug #10161: C API docs not generated properly without baseruby
backported into `ruby_2_0_0` at r47546. usa (Usaku NAKAMURA)
02:23 AM Revision c6a2b2e1 (git): merge revision(s) 47248: [Backport #10161]
* common.mk (Doxyfile): revert r43888, not to require preinstalled
ruby. [ruby-core:64488] [Bug #10161]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:20 AM Bug #9036: [PATCH] io.c: make IO#reopen("pathname") atomic for non-stdio
backported into `ruby_2_0_0` at r47545. usa (Usaku NAKAMURA)
02:20 AM Revision 027748a3 (git): merge revision(s) 43373: [Backport #9036]
* io.c (rb_io_reopen): create a new, temporary FD via rb_sysopen and
call rb_cloexec_dup2 on it to atomically replace the file fptr->fd
points to. This leaves no possible window where fptr->fd is invalid
to...
U.Nakamura

09/11/2014

09:59 PM Feature #10225: [PATCH] *math.c: New method Math.normcdf
FWIW, the Ruby/GSL gem already provides support for this (and many other things):

```
$ ruby -r gsl -e 'p GSL::Cdf::gaussian_P(1)'
0.8413447460685429
```

On Sep 10, 2014, at 11:26 PM, mail@tanakakazuki.com wrote:

> Issue #10...
david_macmahon (David MacMahon)
06:26 AM Feature #10225 (Open): [PATCH] *math.c: New method Math.normcdf
I know it looks kind of arbitrary or unnecessary feature ,but I believe that
to provide such a feature as official is helpful to make people we couldn't reach so far have interest in Ruby.
(Actually only this feature is not enough ...
gogotanaka (Kazuki Tanaka)
09:57 PM Revision a4a2b9be (git): string.c (Init_frozen_strings): use st_init_table_with_size
All symbols have an fstring entry, and we initialize symbol tables
with 1000 bins. This reduces resizes during startup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:22 PM Revision a8ec4b2c (git): * string.c (sym_find): remove Symbol.find because we have Symbol GC now.
https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20140904Japan
If you still want this, request again on Redmine. [Feature #7854]
https://bugs.ruby-lang.org/issues/7854
* ext/-test-/symbol/init.c (sym_find): moved from ...
naruse (Yui NARUSE)
09:20 PM Bug #10231: Process.detach(pid) defines new singleton classes every call
I haven't checked the inits.c ordering change closely, but
make check and test-rubyspec passes:
~~~diff
diff --git a/inits.c b/inits.c
index fe0aade..da8cfb1 100644
--- a/inits.c
+++ b/inits.c
@@ -46,7 +46,6 @@ rb_call_inits(voi...
normalperson (Eric Wong)
09:11 PM Bug #10231: Process.detach(pid) defines new singleton classes every call
headius@headius.com wrote:
> I would suggest that Process.detach should return a subclass of Thread
> that has the pid method defined ahead of time.

Fair enough.

> It also stores the value in thread local storage, rather than as...
normalperson (Eric Wong)
08:02 PM Bug #10231 (Closed): Process.detach(pid) defines new singleton classes every call
The logic for Process.detach(pid) adds a singleton "pid" method to the thread it returns for every call. This is bad for method caches (MRI still flushes them all for this, I believe) and memory churn (singleton classes are not small).
...
headius (Charles Nutter)
07:25 PM Revision f0c968a7 (git): iseq_inline_storage_entry: 24=>16 bytes on 64-bit
We may tag the running_thread pointer to avoid making the "once" struct
bigger than "struct iseq_inline_cache_entry".
This only saves a small amount with "valgrind ruby -e exit"
before:
total heap usage: 48,122 allocs, 19,248 frees, 8...
Eric Wong
07:21 PM Bug #10212: MRI is not for lambda calculus
Eric Wong <normalperson@yhbt.net> wrote:
> I think the xcalloc was overreaching, though.
>
> Removing redundant zero from env_alloc + rb_proc_alloc has a measurable
> effect:
>
> http://80x24.org/misc/m/1410209049-23179-1-git-se...
normalperson (Eric Wong)
05:58 PM Feature #10090: Display of program name in process listing under AIX
I wanted to update this with our findings. This is definitely a result of the functionality in `missing/setproctitle.c`, which was imported from OpenSSH starting in the 1.9.x branch. In version 1.9.3p547, on line 118, there's the line:
...
mckern (Ryan McKern)
05:16 PM Revision 1d0de2a5 (git): * class.c (rb_prepend_module): fix typos in a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:13 PM Revision 5c1dcf5c (git): * 2014-09-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:13 PM Revision 7adbc6a9 (git): * ChangeLog: fix a typo for r47533.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:43 PM Feature #10208: Passing block to Enumerable#to_h
We have #max and #max_by. When we have #hash and #hash_by, people may expect something else.
But it may not matter much. Or maybe we need to rename #hash to #hashcode (off topic here).
Matz.
matz (Yukihiro Matsumoto)
04:19 PM Feature #10208: Passing block to Enumerable#to_h
Marc-Andre Lafortune wrote:
> I completely agree that we need new methods to do this.
Thanks. One idea is name it Enumerable#hash_by (like max_by, group_by)
~~~
User = Struct.new(:id, :name)
users = [User.new(1, "Alice"), User.n...
yhara (Yutaka HARA)
05:29 AM Feature #10208: Passing block to Enumerable#to_h
I think the creation of intermediate arrays for each pair is waste of resource. Can we use combination of two methods? For example, something like:
users.with_keys(&:id).with_values(&:name)
or
users.with_values(&:name).w...
sawa (Tsuyoshi Sawada)
03:05 PM Bug #10229: RFC 5649 implementation in OpenSSL breaks Ruby.
Let me quote Fedora's OpenSSL maintainer on this issue:
~~~
>t8m< "Ruby should not expect that blindly trying any cipher it enumerates would work." Some cipher modes might require special parameters or flags.
~~~
vo.x (Vit Ondruch)
02:11 PM Bug #10229 (Closed): RFC 5649 implementation in OpenSSL breaks Ruby.
Recently updated OpenSSL in Fedora 21+ [1] introduces support for RFC 5649 [2, 3]. However, this breaks Ruby's test suite:
~~~
4) Error:
OpenSSL::TestCipher#test_ciphers:
OpenSSL::Cipher::CipherError: wrap mode not allowed
/...
vo.x (Vit Ondruch)
02:40 PM Bug #10230 (Closed): make install fails with mingw ruby
`make install` fails with mingw ruby on Windows MSYS environemnt.
ruby 2.2.0dev (2014-09-11 trunk 47535) [i386-mingw32]
```
$ make install
...
make[2]: 'ruby.exe' is up to date.
make[2]: 'rubyw.exe' is up to date.
make[2]: Lea...
h.shirosaki (Hiroshi Shirosaki)
01:34 PM Bug #9728: Regexp bug
This bug is fixed with the following Onigmo's commit:
https://github.com/k-takata/Onigmo/commit/15ddec6d18e27fdc1988236764e766fd5892ecf5
This fix is included in Onigmo 5.15.0.
k_takata (Ken Takata)
12:01 PM Revision c566990f (git): add revision number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:59 AM Revision 7b5b3eb3 (git): update NEWS for frozen nil/true/false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:56 AM Revision 45246bc0 (git): update NEWS for new GC related features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:23 AM Revision e45fb73d (git): * vm.c (rb_thread_mark): use rb_gc_mark_values() to mark VM stack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:53 AM Revision 8c6c9c46 (git): * vm.c (rb_vm_register_special_exception): make new function to
make and register special exceptions.
* vm.c (rb_vm_mark): do not need to mark special exceptions
because they are registerd by rb_gc_register_mark_object().
* eval.c (Init_eval): use rb_vm_register_special_exception().
* gc.c (Init_GC...
ko1 (Koichi Sasada)
10:34 AM Revision c653db51 (git): * gc.c (rb_gc_mark_values): added.
This function is similar to rb_gc_mark_locations(), but not
conservertive.
* internal.h: ditto.
* vm.c (env_mark): use rb_gc_mark_values() because env values should
be Ruby VALUEs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
ko1 (Koichi Sasada)
10:23 AM Revision 51101947 (git): * gc.c (gc_mark_ptr): rename to gc_mark_set.
* gc.c (gc_mark): add gc_mark_ptr() to skip is_markable_object()
check. gc_mark_maybe() can use gc_mark_ptr() directly because
passed pointer is checked by is_pointer_to_heap().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47...
ko1 (Koichi Sasada)
09:40 AM Revision dcd1c227 (git): * .gitignore: ignored temporary files and coverage results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:15 AM Revision a5dea648 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:15 AM Revision 558bca64 (git): * .gitignore: ignored only simplecov.
* coverage/README: Added coverage docs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
08:46 AM Revision 970d8cb6 (git): * include/ruby/ruby.h, gc.c: add new internal events
RUBY_INTERNAL_EVENT_GC_ENTER and
RUBY_INTERNAL_EVENT_GC_EXIT.
When invoking GC process, GC_ENTER event is called.
When exiting from GC process, GC_EXIT event is called.
Incremental GC (incremental marking and lazy sweep) can call...
ko1 (Koichi Sasada)
08:45 AM Revision 310462e1 (git): * ChangeLog: use ascii character
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
08:14 AM Feature #10228: Statistics module
@Yukihiro Matsumoto san
Oh.. I know the exchanges like that.. we have had such a talks before.. I'm so sorry for your extra trouble.
Actually I'd like to heighten the international momentum of whole Ruby community toward this field...
gogotanaka (Kazuki Tanaka)
07:46 AM Feature #10228 (Feedback): Statistics module
Why don't you create a gem and polish the spec before adding it in the core?
Matz.
matz (Yukihiro Matsumoto)
07:41 AM Feature #10228 (Feedback): Statistics module
I'm gonna implement some features related with statistics to `Math` module now.
Like that -> https://bugs.ruby-lang.org/issues/10225
But I am afraid that `Math` module becomes too complex and suppose such a feature should be apart...
gogotanaka (Kazuki Tanaka)
08:11 AM Bug #10202: TestBenchmark#test_realtime_output breaks on ARM
Thanks for the confirmation! r47526 removes CLOCK_MONOTONIC_RAW.

r47526 | normal | 2014-09-11 08:09:07 +0000 (Thu, 11 Sep 2014) | 14 lines

lib/benchmark.rb: remove CLOCK_MONOTONIC_RAW support

In addition to being unaffected by ...
normalperson (Eric Wong)
08:09 AM Bug #10202 (Closed): TestBenchmark#test_realtime_output breaks on ARM
Applied in changeset r47526.
----------
lib/benchmark.rb: remove CLOCK_MONOTONIC_RAW support
In addition to being unaffected by _offset_ correction,
CLOCK_MONOTONIC_RAW is also unaffected by _frequency_ correction,
making it unsuitable...
Anonymous
07:52 AM Bug #10202: TestBenchmark#test_realtime_output breaks on ARM
The test passes with the applied patch:
~~~
$ ruby -Itest/lib/ test/benchmark/test_benchmark.rb -n test_realtime_output -v
Run options: -n test_realtime_output -v
# Running tests:
TestBenchmark#test_realtime_output = 1.00 s = ...
vo.x (Vit Ondruch)
08:09 AM Revision b8eec6b6 (git): lib/benchmark.rb: remove CLOCK_MONOTONIC_RAW support
In addition to being unaffected by _offset_ correction,
CLOCK_MONOTONIC_RAW is also unaffected by _frequency_ correction,
making it unsuitable for measuring real time on systems where the
clock is always running too fast or slow.
CLOCK_...
Eric Wong
07:06 AM Bug #10223: Stack level too deep in CSV when parsing long line
The shortest code would be:
~~~ruby
def t;yield [0]*200000; end
t{|a,|}
~~~
nobu (Nobuyoshi Nakada)
06:31 AM Feature #10227 (Closed): array.include? is much slower than array.index
I benchmarked both, and found that `include?` is about ten times slower than `index` (for the test below).
~~~
require 'benchmark'
a = (1..1_000_000).to_a
num = 100_000
reps = 100
Benchmark.bmbm do |bm|
bm.report('include?...
Darudmand (A N)
06:30 AM Feature #10226 (Rejected): [PATCH] *math.c: Slight refactoring
Through `https://bugs.ruby-lang.org/issues/10225` I found something refactorable. gogotanaka (Kazuki Tanaka)
06:28 AM Feature #9614: ordering of non-Hash items which use st_ internally
I forget, ordering is easy to add to ihash with ccan/list.

Work-in-progress, this is only for method entries with ihash ordered
doing "ruby -e exit" (loading rubygems)

Numbers from valgrind, so "bytes allocated" does not take int...
normalperson (Eric Wong)
06:14 AM Feature #8923 (Closed): Frozen nil/true/false
Applied in changeset r47525.
----------
test_object.rb: add assertions
* test/ruby/test_object.rb (test_freeze_immediate): assertions for
[Feature #8923].
nobu (Nobuyoshi Nakada)
05:24 AM Feature #8923: Frozen nil/true/false
@ko1 you have proven there's no significant issue. Go ahead.
Of course, we might have to revert it if something happens outside of test suites.
Matz.
matz (Yukihiro Matsumoto)
06:13 AM Revision dd9a9241 (git): test_object.rb: add assertions
* test/ruby/test_object.rb (test_freeze_immediate): assertions for
[Feature #8923].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:40 AM Bug #10221 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
Seems a therubyracer's issue. nobu (Nobuyoshi Nakada)
05:38 AM Revision 8e3c057d (git): add reference to the ticket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:37 AM Revision cc3088ea (git): * include/ruby/ruby.h: freeze nil/true/false.
* gc.c (should_be_finalizable): check frozen after checkin FL_ABLE.
* object.c (rb_obj_taint): check
OBJ_TAINTABLE(obj).
* object.c (rb_obj_freeze): remove immediate_frozen_tbl
because all of immediate values are frozen. YAY!
* obje...
ko1 (Koichi Sasada)
05:17 AM Bug #10224: Server crash
From your log, the SEGV point was:
https://github.com/typhoeus/ethon/blob/v0.7.1/lib/ethon/multi/operations.rb#L171
So, you should contact the author of ethon, I guess.
usa (Usaku NAKAMURA)
03:23 AM Bug #10224: Server crash
Usaku NAKAMURA wrote:
> It seems that there is a wrong call of libcurl via ffi.
Sorry I'm new to this. How would I fix that? Do I have to find the gem that is causing this issue and report the bug through them?
jahvon (Jahvon Dock)
02:25 AM Bug #10224 (Third Party's Issue): Server crash
It seems that there is a wrong call of libcurl via ffi. usa (Usaku NAKAMURA)
02:13 AM Bug #10224: Server crash
I just tried changing my version from 2.1.1 back to 1.9.3 and the problem is no longer there. jahvon (Jahvon Dock)
02:04 AM Bug #10224 (Third Party's Issue): Server crash
Every time I try to run the application that I created with ruby my server crashes. I am actually a beginner to programming with ruby so this is pretty new to me. I tried commenting out many parts of my code but could not find the exact ... jahvon (Jahvon Dock)
02:38 AM Feature #10096: [PATCH] use khash for fstring and id_str tables
normalperson@yhbt.net wrote:
> File khash-fstring-v3.patch added

OK to commit before 9/14? I think khash is the best for fstring
as we only store one VALUE (no extra allocation)

> * covert smaller internal hashes where ordering...
normalperson (Eric Wong)
01:03 AM Revision d2d4017d (git): * 2014-09-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:03 AM Revision 80325bab (git): * lib/rdoc.rb, lib/rdoc, test/rdoc: Update to RDoc 4.2.0.alpha(21b241a)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

09/10/2014

08:34 PM Bug #10221: You may have encountered a bug in the Ruby interpreter or extension libraries.
this is ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
dwarf (klaus dieter)
08:33 PM Bug #10221: You may have encountered a bug in the Ruby interpreter or extension libraries.
I seem to be experiencing the same or a similar bug.
Iam running rake assets:precompile and the process crashes.
This is the crashdump: http://dl.ffm.freifunk.net/pastebin/ruby-crash
dwarf (klaus dieter)
10:31 AM Bug #10221 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
Hi guys recently i'd installed ruby.
i'm trying to run beef(browsing exploitation framework),
i'd installed ruby sucessfull and when i tried to run beef it is showing me a error message that
"You may have encountered a bug in t...
tulsirao (B.Tulsi Rao)
03:02 PM Bug #10191: Possible memory leak using dup and setting an unassigned instance variable (Windows)
r46501, r47372 and r47460 were backported into `ruby_2_1` branch at r47520.
I add limit: 2.5 option argment to assert_no_memory_leak in the testcase because it fails with default threshold (1.5) on 2.1.
nagachika (Tomoyuki Chikanaga)
02:57 PM Revision 4d238acd (git): merge revision(s) r46501,r47372,r47460: [Backport #10191]
* object.c (rb_obj_copy_ivar): extract function to copy instance
variables only for T_OBJECT from init_copy.
* object.c (rb_obj_copy_ivar): allocate no memory for empty
instance variables. [ruby-core:64700] ...
nagachika (Tomoyuki Chikanaga)
02:32 PM Bug #9344: warning origin incorrect with instance_eval
merge partially r46831 into `ruby_2_1` branch at r47519.
The patch was derived from https://github.com/k-takata/Onigmo/commit/bdfc1997aa15b6baddaf9a482c6610b32504bd86
nagachika (Tomoyuki Chikanaga)
02:30 PM Revision 5d913e21 (git): merge r46831 partially. extracted commits are as follows. [Bug #9344]
https://github.com/k-takata/Onigmo/commit/bdfc1997aa15b6baddaf9a482c6610b32504bd86
* regcomp.c: Merge Onigmo 5.14.1 25a8a69fc05ae3b56a09.
this includes Support for Unicode 7.0 [Bug #9092].
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nagachika (Tomoyuki Chikanaga)
02:30 PM Bug #10223: Stack level too deep in CSV when parsing long line
I guess, that CSV has not much to do with that error. Probably the root cause is that `*mappings` inside
~~~
|category,*mappings|
~~~
is a very long array, which is (de)composed recursively. And this causes the Stack-level to deep ...
apohllo (Aleksander Pohl)
02:21 PM Bug #10223 (Closed): Stack level too deep in CSV when parsing long line
The following code:
~~~ruby
#!/usr/bin/env ruby
# encoding: utf-8
require 'bu...
apohllo (Aleksander Pohl)
02:23 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
I can't change the title myself. Could someone with privileges please change it to something like: "require_relative and require should be compatible with each other when symlinks are used".
I think this would make it easier to be sea...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:53 PM Bug #10222 (Closed): require_relative and require should be compatible with each other when symlinks are used
Not sure if this should be considered a bug or a feature request since I don't know whether the current behavior is intended or not.
Recently I got a report for my gem rails-web-console related to require_relative causing trouble with...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:08 PM Bug #10161: C API docs not generated properly without baseruby
Backported into `ruby_2_1` branch at r47518. nagachika (Tomoyuki Chikanaga)
02:07 PM Revision 46075e24 (git): merge revision(s) r47248: [Backport #10161]
* common.mk (Doxyfile): revert r43888, not to require preinstalled
ruby. [ruby-core:64488] [Bug #10161]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:21 PM Feature #10208: Passing block to Enumerable#to_h
I agree `to_h` isn't the right method to do this.
I completely agree that we need new methods to do this.
This would also be a solution for #4151, and the multiple other proposals related to it.
marcandre (Marc-Andre Lafortune)
10:32 AM Feature #8923: Frozen nil/true/false
Hans Mackowiak wrote:
> i am unsure about toally freeze them ... some might extend/include some "Boolean" module into true/false or the TrueClass/FalseClass to specially check if a value is only true or false
Can you explain that use...
fxn (Xavier Noria)
08:30 AM Feature #8923: Frozen nil/true/false
Hans Mackowiak wrote:
> i am unsure about toally freeze them ... some might extend/include some "Boolean" module into true/false or the TrueClass/FalseClass to specially check if a value is only true or false
> ...
```ruby
p true.froz...
ko1 (Koichi Sasada)
08:28 AM Feature #8923: Frozen nil/true/false
The following patch makes test-all green.
```
Index: gc.c
===================================================================
--- gc.c (revision 47513)
+++ gc.c (working copy)
@@ -2286,11 +2286,11 @@ should_be_callable(VALUE bl...
ko1 (Koichi Sasada)
09:10 AM Feature #10187: minor iseq memory reductions
ko1@atdot.net wrote:
> Eric Wong wrote:
> > Nobody hits the limit, so reusing rb_memerror keeps code size down.
>
> how about to use rb_fatal() to declare give up?

Actually, nobody hits that check anymore, I removed it.
Correc...
normalperson (Eric Wong)
07:35 AM Feature #10187: minor iseq memory reductions
Eric Wong wrote:
> Nobody hits the limit, so reusing rb_memerror keeps code size down.
how about to use rb_fatal() to declare give up?
ko1 (Koichi Sasada)
09:00 AM Revision 02dade3b (git): variable.c (rb_ivar_set): remove unnecessary check
r47512 contains the proper fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:53 AM Revision 6f7eda7b (git): * compile.c (rb_vm_addr2insn): rename to rb_vm_insn_addr2insn
to clear what address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:25 AM Revision c544c985 (git): test_date.rb: nonsense assertion
* test/date/test_date.rb (TestDate#test__const): remove nonsense
assertion. nil.frozen? is not date's concern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:22 AM Revision 24974c0e (git): gc.c: preserve encoding
* gc.c (should_be_callable): preserve encoding of class name in
error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 AM Revision 826341c7 (git): compile.c: remove useless cast
* compile.c (rb_iseq_original_iseq): remove useless cast to fix
compile error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 AM Revision ddf6eb40 (git): variable.c: check index overflow
* variable.c (rb_ivar_set), vm_insnhelper.c (vm_setivar): check
instance variable index overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:04 AM Revision 6a6362d6 (git): pack.c: no nil.taint
* pack.c (pack_pack): nil is not taintable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:24 AM Revision cf692592 (git): * test/ruby/test_gc.rb: fix condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:32 AM Revision b3a4367c (git): rb_call_info_t: shrink to 96 bytes from 104 bytes on 64-bit
This keeps ci->flag and ci->aux.index consistent across 32-bit
and 64-bit platforms.
ci->flag: VM_CALL_* flags only use 9 bits, currently
ci->aux.index: 2 billion ivars per class should be enough for anybody
This saves around 50K alloc...
Eric Wong
06:18 AM Feature #10121: Dir.empty?
https://github.com/nobu/ruby/compare/Feature%2310121-Dir.empty-p nobu (Nobuyoshi Nakada)
02:28 AM Feature #10121 (Feedback): Dir.empty?
What should happen if the `dir` is not a directory name?
Just returns `false`, or raises `Errno::ENOTDIR`?
nobu (Nobuyoshi Nakada)
06:14 AM Feature #10185 (Closed): [PATCH] iseq: free untranslated iseq->iseq at compile
Applied in changeset r47508.
----------
compile: translate iseq in-place
running "ruby -rpp -e 'pp GC.stat'", a reduction in
malloc usage is shown:
before:
:malloc_increase=>118784,
:oldmalloc_increase=>1178736,
after:
:malloc_inc...
Anonymous
06:14 AM Revision ea4c9790 (git): compile: translate iseq in-place
running "ruby -rpp -e 'pp GC.stat'", a reduction in
malloc usage is shown:
before:
:malloc_increase=>118784,
:oldmalloc_increase=>1178736,
after:
:malloc_increase=>99832,
:oldmalloc_increase=>1031976,
F...
Eric Wong
06:01 AM Revision fd31eb3f (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:01 AM Feature #10219 (Closed): [PATCH] time.c: DATA_PTR is never NULL
Applied in changeset r47506.
----------
time.c: DATA_PTR is never NULL
* time.c (time_mark): remove NULL check
(time_memsize): ditto
(time_free): remove, use RUBY_TYPED_DEFAULT_FREE instead
[Feature #10219]
Tiny improvement on m...
Anonymous
01:24 AM Feature #10219 (Assigned): [PATCH] time.c: DATA_PTR is never NULL
Seems fine.
`RUBY_TYPED_DEFAULT_FREE` also does nothing if `DATA_PTR` is `NULL`, as same as `time_free` does now.
And `tobj` should not be `NULL` as `Time.allocate` always allocate it.
nobu (Nobuyoshi Nakada)
06:01 AM Revision 6c396e94 (git): time.c: DATA_PTR is never NULL
* time.c (time_mark): remove NULL check
(time_memsize): ditto
(time_free): remove, use RUBY_TYPED_DEFAULT_FREE instead
[Feature #10219]
Tiny improvement on my old Phenom II X4 945 system:
$ ruby --disable=gems -e '6000000.times { ...
Eric Wong
05:20 AM Bug #10220 (Assigned): enc/trans/*.c の依存関係不足?
たぶん依存もれはこれでいいと思います。
distcleanの方は未対応です。
そもそもenc.mkに処理を投げてない気がするんですが、マジで? どっか見落としてるかなあ。
usa (Usaku NAKAMURA)
05:16 AM Bug #10220 (Closed): enc/trans/*.c の依存関係不足?
Applied in changeset r47505.
----------
* common.mk (encs enc trans libencs libenc libtrans): force to run
enk.mk because common.mk does not know the dependency, but enk.mk
knows. [ruby-dev:48530] [Bug #10220]
usa (Usaku NAKAMURA)
04:50 AM Bug #10220 (Closed): enc/trans/*.c の依存関係不足?
r47221 の EUC-KR の文字追加後に make test-all するとこの変更についてのテストが失敗しました。
make distclean してやりなおしてもやはり失敗しました。
手動で enc/trans/korean.c を削除してから make で再ビルドすると変更が反映されてテストが通るようになりました。
enc/trans/*.c の依存関係が足りないか、または少なくとも make distclean の削除対象から漏れているのではない...
nagachika (Tomoyuki Chikanaga)
05:16 AM Revision e564a82a (git): * common.mk (encs enc trans libencs libenc libtrans): force to run
enk.mk because common.mk does not know the dependency, but enk.mk
knows. [ruby-dev:48530] [Bug #10220]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:38 AM Revision 23abce4b (git): * test/ruby/envutil.rb: remove duplicated method. this problem was introduced
at r47479.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:36 AM Bug #10153: File.open block does not throw "No space left on device (Errno::ENOSPC)" if the data fits the buffer of IO.write
backported into `ruby_2_0_0` at r47503. usa (Usaku NAKAMURA)
03:36 AM Revision 9d742d73 (git): merge revision(s) 47288: [Backport #10153]
* io.c (io_close): ignore only "closed stream" IOError and
NoMethodError, do not swallow other exceptions at the end of
block. [ruby-core:64463] [Bug #10153]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
U.Nakamura
03:33 AM Bug #10149: Some characters in EUC-KR does not encode to UTF-8 properly
backported into `ruby_2_0_0` at r47502. usa (Usaku NAKAMURA)
03:32 AM Revision 07b140ec (git): merge revision(s) 47221: [Backport #10149]
* enc/trans/euckr-tbl.rb (EUCKR_TO_UCS_TBL): add missing euro and
registered signs. [ruby-core:64452] [Bug #10149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 AM Bug #10144: [PATCH] time_timespec: fix tv_nsec overflow on float conversion
backported into `ruby_2_0_0` at r47501. usa (Usaku NAKAMURA)
03:26 AM Revision b84c5c3e (git): merge revision(s) 47196: [Backport #10144]
* time.c (time_timespec): fix tv_nsec overflow
[Bug #10144]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:24 AM Bug #10101: Zlib::GzipReader produce different outputs for different methods applied
backported into `ruby_2_0_0` at r47500. usa (Usaku NAKAMURA)
03:24 AM Revision 33e54f34 (git): merge revision(s) 47327: [Backport #10101]
* ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE
[Bug #10101]
* test/zlib/test_zlib.rb (test_rewind): test each_byte
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47500 b2dd03c8-39d4-4...
U.Nakamura
03:21 AM Bug #10043: Crash Report log file on MacOS X
backported into `ruby_2_0_0` at r47499. usa (Usaku NAKAMURA)
03:20 AM Revision 1b7b4701 (git): merge revision(s) 44916: [Backport #10043]
error.c: Crash Report log
* error.c (REPORTBUG_MSG): mention about Crash Report log file on
MacOS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:08 AM Bug #10039: "a+" mode for File.open doesn’t work
backported into `ruby_2_0_0` at r47498. usa (Usaku NAKAMURA)
03:08 AM Revision 53c0a52d (git): merge revision(s) 46876: [Backport #10039]
* io.c (rb_io_initialize): [DOC] fix rdoc of append mode. it does
not move the pointer at open. [ruby-core:63747] [Bug #10039]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47498 b2dd03c8-39d4-4d8f-98ff-82...
U.Nakamura
03:05 AM Bug #9982: Kernel#sprintf: unmbered widht and precision with numbered argument
backported into `ruby_2_0_0` at r47497. usa (Usaku NAKAMURA)
03:05 AM Revision ae6d2485 (git): merge revision(s) 46569: [Backport #9982]
* sprintf.c (GETASTER): should not use the numbered argument to be
formatted, raise ArgumentError instead.
[ruby-dev:48330] [Bug #9982]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47497 b2dd03c8-...
U.Nakamura
02:59 AM Revision c1b05c53 (git): * gc.c (gc_stat): update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:54 AM Feature #9924 (Open): Revisitting GC.stat keys
fixed.
https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing
Feedbacks are welcome.
ko1 (Koichi Sasada)
01:42 AM Feature #9924 (Closed): Revisitting GC.stat keys
Applied in changeset r47488.
----------
* gc.c (objspace_total_slot): rename objspace_available_slots.
* gc.c (objspace_live_slot, objspace_free_slot): rename
..._slot() to ..._slots().
* gc.c (objspace_free_slot): should subtract hea...
ko1 (Koichi Sasada)
02:53 AM Revision 52c41f1e (git): * gc.c (gc_stat_internal): rename:
* malloc_increase -> malloc_increase_bytes
* malloc_limit -> malloc_increase_bytes_limit
* oldmalloc_increase -> oldmalloc_increase_bytes
* oldmalloc_limit -> oldmalloc_increase_bytes_limit
ref: [Feature #9924]
git-svn-id: svn...
ko1 (Koichi Sasada)
02:49 AM Bug #9984: OpenSSL::TestPKeyRSA#test_sign_verify_memory_leak timeouts on ARM
backported into `ruby_2_0_0` at r47494. usa (Usaku NAKAMURA)
02:49 AM Revision 1872f299 (git): merge revision(s) 47362: [Backport #9984]
* test/openssl/test_pkey_rsa.rb (OpenSSL#test_sign_verify_memory_leak):
added timeout into testcase for low performance environment.
[Bug #9984][ruby-core:63367]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/...
U.Nakamura
02:47 AM Revision ed729d39 (git): * gc.c (gc_stat_internal): rename `heap_used' to `heap_allocated_pages'.
ref: [Feature #9924]
* test/ruby/test_gc.rb: add constraints test for gc stat information.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:42 AM Bug #9976: ENV doesn't raise SecurityError except for aset and delete
backported into `ruby_2_0_0` at r47492. usa (Usaku NAKAMURA)
02:42 AM Revision 5483a6b8 (git): merge revision(s) 46547: [Backport #9976]
* hash.c (env_aset, env_has_key, env_assoc, env_has_value),
(env_rassoc, env_key): prohibit tainted strings if $SAFE is
non-zero. [Bug #9976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@47492 b2...
U.Nakamura
02:35 AM Revision 6b398398 (git): * gc.c (gc_stat_internal): rename:
* remembered_shady_object -> remembered_wb_unprotected_objects
* remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
* old_object -> old_objects
* old_object_limit -> old_objects_limit
ref: [Feature #9924]
...
ko1 (Koichi Sasada)
02:13 AM Revision 2d581d6c (git): * gc.c (gc_stat_internal): support:
* total_allocated_pages
* total_freed_pages
ref: [Feature #9924]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:48 AM Revision 83f02b98 (git): * test/ruby/test_gc.rb: catch up last fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:42 AM Revision 6c625427 (git): * gc.c (objspace_total_slot): rename objspace_available_slots.
* gc.c (objspace_live_slot, objspace_free_slot): rename
..._slot() to ..._slots().
* gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
* gc.c (gc_stat_internal):
* add `heap_available_slots' field
* rename heap_liv...
ko1 (Koichi Sasada)

09/09/2014

10:32 PM Revision 6b4a7aa2 (git): * gc.c: refactoring for RGENGC_PROFILE > 0.
* rename rb_objspace_t::profile::..._count
to rb_objspace_t::profile::total_..._count
* rename promote_infant_types to promote_types
* gc.c (gc_remember_unprotected): count remembered shady objects here.
git-svn-id: svn+ssh://ci...
ko1 (Koichi Sasada)
09:28 PM Feature #10219 (Closed): [PATCH] time.c: DATA_PTR is never NULL
Tiny improvement on my older Phenom II X4 945 system:
$ ruby --disable=gems -e '6000000.times { Time.now }'
before: 2.51user 0.00system 0:02.51elapsed 100%CPU
after: 2.45user 0.00system 0:02.45elapsed 100%CPU
Will commit soon unle...
normalperson (Eric Wong)
06:48 PM Bug #10153: File.open block does not throw "No space left on device (Errno::ENOSPC)" if the data fits the buffer of IO.write
Backported into `ruby_2_1` branch at r47486. nagachika (Tomoyuki Chikanaga)
06:47 PM Revision 8f01a278 (git): merge revision(s) r47288: [Backport #10153]
* io.c (io_close): ignore only "closed stream" IOError and
NoMethodError, do not swallow other exceptions at the end of
block. [ruby-core:64463] [Bug #10153]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
nagachika (Tomoyuki Chikanaga)
06:26 PM Bug #10149: Some characters in EUC-KR does not encode to UTF-8 properly
Backported into `ruby_2_1` branch at r47485. nagachika (Tomoyuki Chikanaga)
06:25 PM Revision 5545b8b4 (git): merge revision(s) r47221: [Backport #10149]
* enc/trans/euckr-tbl.rb (EUCKR_TO_UCS_TBL): add missing euro and
registered signs. [ruby-core:64452] [Bug #10149]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:23 PM Revision 1bb70431 (git): * 2014-09-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:23 PM Revision 9aacc92b (git): * gc.c (init_mark_stack): MEMZERO() receive type as 2nd argument instead
of size.
Coverity Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:10 PM Bug #10144: [PATCH] time_timespec: fix tv_nsec overflow on float conversion
Backported into `ruby_2_1` branch at r47482. nagachika (Tomoyuki Chikanaga)
06:10 PM Revision 609961a4 (git): merge revision(s) r47196: [Backport #10144]
* time.c (time_timespec): fix tv_nsec overflow
[Bug #10144]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:59 PM Revision d2f4d58d (git): merge revision(s) r47191: [Backport #10140]
* iseq.c (rb_iseq_clone): Should not insert write barrier from
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/branches/ruby_2_1@47481 b...
nagachika (Tomoyuki Chikanaga)
05:46 PM Revision 8ba979b0 (git): merge revision(s) r47190: [Backport #10139]
* string.c (setup_fake_str): fake strings should not set class by
RBASIC_SET_CLASS() because it insert write barriers to fake
(non-RVALUE) structure.
It can cause unexpected behaviour.
Ruby 2.1 als...
nagachika (Tomoyuki Chikanaga)
05:27 PM Bug #10218: 手続きを再帰するとSegmentation faultが発生する
https://bugs.ruby-lang.org/issues/9945 と同じ原因で、既に修正済みのような気がする zonuexe (Kenta USAMI)
05:14 PM Bug #10218 (Closed): 手続きを再帰するとSegmentation faultが発生する
`stack level too deep (SystemStackError)`が発生することを期待した。
~~~
% ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
% ruby -e"r = ->(n){ print %(#{n},); r.(n+1) }; r.(0)" > /tmp/foo_out 2>/tmp/foo_err
zsh: abort ...
zonuexe (Kenta USAMI)
03:18 PM Feature #10217 (Open): Dir constructor similar to Pathname constructor
Make Dir(path) an alias for Dir.new(path)
Dir('.').entries
Dir('test').each do |entry|
..
dsisnero (Dominic Sisneros)
01:09 PM Revision 5623c00f (git): s/stressfull/stressful/g
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:01 PM Bug #10213: bundled gems ignored by make install
Hans Mackowiak wrote:
> my use case would be i writing a script that makes a dot graph from the installed/requested gems and the dependencies between them ... with this some gems are different styled depending on some conditions, like i...
kou (Kouhei Sutou)
01:01 PM Revision 9d0a6f3d (git): * ext/win32ole/sample/excel2.rb: remove some commented-out code.
rotate graph more slowly to see graph clearly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
12:52 PM Revision 36dc2e4b (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:51 PM Feature #9924 (Open): Revisitting GC.stat keys
r47472
r47473
r47474
are also related changes (and not finished).
These fixes break prorgrams depends on specific GC.stat() keys.
Any other objections?
ko1 (Koichi Sasada)
09:34 AM Feature #9924 (Closed): Revisitting GC.stat keys
Applied in changeset r47471.
----------
* gc.c (rb_objspace_t::heap_pages): rename field names:
* used -> allocated_pages
* increment -> allocatable_pages
* length -> sorted_length
And remove unused `limt' field.
* gc.c: rename ...
ko1 (Koichi Sasada)
12:50 PM Revision eebdf04c (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:22 AM Revision fa326bf3 (git): GC.stat key name
* test/-ext-/tracepoint/test_tracepoint.rb: follow the change of
key name of GC.stat.
* test/ruby/test_hash.rb (TestHash#test_AREF_fstring_key): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47475 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
10:55 AM Revision 9b6bc26f (git): * gc.c: rename rb_objspace_t::marked_objects to marked_slots.
* gc.c (gc_marks_start): should be clear first.
* gc.c (gc_marks_start): remembered shady objects are also marked.
* gc.c (gc_stat_internal): add heap_marked_slots.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47474 b2dd03c8-39d4...
ko1 (Koichi Sasada)
10:01 AM Revision 97fef1cd (git): * gc.c: rename
* total_allocated_object_num -> total_allocated_objects
* total_allocated_object_num_at_gc_start -> total_allocated_objects_at_gc_start
* total_freed_object_num -> total_freed_objects
* gc.c (gc_stat_internal):
* rename total_alloc...
ko1 (Koichi Sasada)
10:00 AM Feature #10187: minor iseq memory reductions
ko1@atdot.net wrote:
>
> ...
I took the hint from compile_data_alloc:
~~~C
if (size >= INT_MAX) rb_memerror();
if (storage->pos + size > storage->size) {
unsigned int alloc_size = storage->size;
while (alloc_size < ...
normalperson (Eric Wong)
10:00 AM Feature #10187: minor iseq memory reductions
ko1@atdot.net wrote:
> > Subject: [PATCH] iseq_inline_storage_entry: 24=>16 bytes on x86-64
>
> > ~~~diff
> > +#define RUNNING_THREAD_ONCE_DONE ((rb_thread_t *)(0x1))
>
> How about to define macro such as
>
> ~~~C
...
normalperson (Eric Wong)
09:14 AM Feature #10187: minor iseq memory reductions
> ~~~diff
> ...
memerror?
ko1 (Koichi Sasada)
09:11 AM Feature #10187: minor iseq memory reductions
> Subject: [PATCH] iseq_inline_storage_entry: 24=>16 bytes on x86-64
> ...
How about to define macro such as
~~~C
#define ONCE_FINISHED(once) ((once)->running_thread == 0x01)
~~~
and use as
~~~C
if (ONCE_FINIHSED(&is->onc...
ko1 (Koichi Sasada)
08:32 AM Feature #10187: minor iseq memory reductions
updated 2/2 patch to adjust for r47456 (redundant SYM2ID <=> ID2SYM removal)
normalperson (Eric Wong)
09:53 AM Revision 72749760 (git): * gc.c (gc_stat_internal): fix symbol names
* heap_final_slot -> heap_final_slots
* heap_swept_slot -> heap_swept_slots
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:33 AM Revision 8ee9071c (git): * gc.c (rb_objspace_t::heap_pages): rename field names:
* used -> allocated_pages
* increment -> allocatable_pages
* length -> sorted_length
And remove unused `limt' field.
* gc.c: rename macros:
* heap_pages_used -> heap_allocated_pages
* heap_pages_length -> heap_pages_sorted_leng...
ko1 (Koichi Sasada)
08:21 AM Feature #10185: [PATCH] iseq: free untranslated iseq->iseq at compile
This combines both patches to do translation in-place.
I couldn't make rb_iseq_original_iseq return const because of
rb_iseq_line_trace_each, but it now caches iseq->iseq field
(at the bottom of rb_iseq_t, away from hotter fields).
...
normalperson (Eric Wong)
01:47 AM Feature #10185: [PATCH] iseq: free untranslated iseq->iseq at compile
Koichi Sasada wrote:
> - rename rb_iseq_untranslate_threaded_code to rb_iseq_decode_encoded_iseq() and fill iseq->iseq if iseq->iseq is not NULL.
decode is also strange.
const VALUE *rb_iseq_orignal_iseq() ?
ko1 (Koichi Sasada)
01:39 AM Feature #10185: [PATCH] iseq: free untranslated iseq->iseq at compile
Thank you for waiting my comment.
I'm thinking about compatibility and expandability.
Now, in Ruby source, iseq->iseq is used only for disasm. So that your patch works completely.
However we have several compilers (iseq -> C) to u...
ko1 (Koichi Sasada)
06:39 AM Revision eb7a7801 (git): gc.c: fix typos
* gc.c (gc_stat_transition): fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:00 AM Revision 886e2799 (git): * gc.c: continue layout changing.
newobj_of() also touch:
(4) increment total_allocated_object_num
(5) check hook_events
And gather fields related to marking phase.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:24 AM Revision 15e4903c (git): * gc.c: fix layout of rb_objsapce_t to improve cache locality.
newobj_of() accesses:
(1) rb_objspace_t::flags
(2) rb_objspace_t::eden_heap::freelist
(3) and rb_objspace_t::eden_heap::free_pages if freelist is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47468 b2dd03c8-39d4-4d8f-9...
ko1 (Koichi Sasada)
05:12 AM Revision 3238a4a7 (git): * gc.c: move rb_objspace_t::flags::gc_stressfull after during_gc
to make accesssing both parameters easy.
* gc.c (heap_get_freeobj): add LIKELY() hint.
* gc.c (heap_get_freeobj_from_next_freepage): ditto.
* gc.c (newobj_of): check both parameters at once for exceptional
case.
git-svn-id: svn+ssh:...
ko1 (Koichi Sasada)
04:56 AM Revision ddac04d2 (git): * gc.c: add rb_objspace_t::flags::gc_stressfull and
ruby_gc_stressfull macro.
Rename objspace->gc_stress to objspace->gc_stress_mode.
If objspace->gc_stress_mode is true (!nil and !false) then
ruby_gc_stressfull becomes TRUE.
ruby_gc_stressfull will speedup newobj_of() slightly.
*...
ko1 (Koichi Sasada)
04:12 AM Revision 0c391a55 (git): * gc.c: remvoe ruby_disable_gc_stress and add ruby_disable_gc
to speed-up newobj_of().
* gc.c (ready_to_gc): check ruby_disable_gc.
* signal.c: use ruby_disable_gc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:13 AM Revision 335ca560 (git): * gc.c: rename gc_stat entries and check stat transition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:07 AM Revision 71990d0e (git): * gc.c (gc_sweep_rest): remove wrong modification of during_gc flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:59 AM Revision ce71cfaa (git): * gc.c (rb_objspace_t::profile): reduce padding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:45 AM Revision c5e13c32 (git): * gc.c: pack boolean values into rb_objspace_t::flags with bit fields
to improve cache locality.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:14 AM Revision dba34989 (git): * test/ruby/test_object.rb: extend timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:08 AM Bug #10206: garbage symbols crash symbol GC
One problem about it is ripper.
The result of `Ripper.parse` is transient, but symbols by its side-effect are permanent, right now.
So now I'm thinking the plan:
1. make all IDs permanent, as ko1 claims
2. isolate Symbols in ripp...
nobu (Nobuyoshi Nakada)
01:43 AM Bug #10206: garbage symbols crash symbol GC
> Unfortunately, I do not yet understand why we avoid pindown in parse.y
> ...
Exactlly. However, nobu wants to reduce immoratal symbols from parse.y.
(I'm strongly against for such optimization)
My proposal is to avoid such `withou...
ko1 (Koichi Sasada)
12:31 AM Revision f32e38a9 (git): fake.rb.in: use absolute path
* template/fake.rb.in (top_srcdir): use absolute path to resolve
symbolic links in srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:27 AM Revision 097c3e9c (git): mkmf.rb: -I flags to $INCFLAGS
* lib/mkmf.rb (MakeMakefile#pkg_config): separate -I flags to
$INCFLAGS, which is used by CPP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:02 AM Bug #8315 (Closed): mkmf does not include include paths from pkg_config anymore
Applied in changeset r47457.
----------
mkmf.rb: --cflags to $CXXFLAGS
* lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
$CXXFLAGS, as they are often used by C++ compiler.
[ruby-core:54532] [Bug #8315]
nobu (Nobuyoshi Nakada)
12:02 AM Revision 5be82d14 (git): mkmf.rb: --cflags to $CXXFLAGS
* lib/mkmf.rb (MakeMakefile#pkg_config): append --cflags to also
$CXXFLAGS, as they are often used by C++ compiler.
[ruby-core:54532] [Bug #8315]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47457 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom