Activity
From 09/30/2012 to 10/06/2012
10/06/2012
-
10:49 PM Bug #7112: File.extname documentation fix
- Good catch!
There are a few special cases:
- dotfiles (e.g.: ".hidden") have "" for extname and ".hidden" for basename.
- files ending with a dot report "" as extname (done by rb_file_s_extname())
- looking at ruby_enc_find_extname... -
11:59 AM Bug #7112 (Closed): File.extname documentation fix
- The documentation says that File.extname returns the portion of the filename _after_ the period, while the actual output includes the period. Update the documentation to reflect this.
-
08:03 PM Revision 511703c7 (git): * lib/abbrev.rb: Documentation examples for Abbrev.
- [ruby-dev:47442] [Bug #6985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:51 PM Revision 61d460e5 (git): * thread.c (rb_thread_aref):
- Grammar in Thread documentation.
Patch by Steve Klabnik [ruby-dev:47799] [Bug #7099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:48 PM Revision 5683d8b4 (git): * string.c (rb_str_match):
- Clarify behavior for captured strings and local variable assignment
Patch by Marcus Stollsteimer [ruby-dev:47668] [Bug #7062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:38 PM Revision bdbd1f84 (git): * 2012-10-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:38 PM Revision 1b5ce613 (git): * string.c (rb_str_match):
- Clarify behavior for captured strings and local variable assignment
Patch by Marcus Stollsteimer [ruby-dev:47668] [Bug #7062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:37 PM Bug #7111: New build option to enable/disable global method caching
- ko1 (Koichi Sasada) wrote:
> (2012/10/06 15:31), shugo (Shugo Maeda) wrote:
> ...
I've committed the fix with the above change. -
06:36 PM Bug #7111 (Closed): New build option to enable/disable global method caching
- This issue was solved with changeset r37106.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_opts.h (OPT_GLOBAL_METHOD_CACHE): new build option to
ena... -
05:23 PM Bug #7111: New build option to enable/disable global method caching
- (2012/10/06 15:31), shugo (Shugo Maeda) wrote:
> I forgot to attach it:(
> Please see opt_global_method_cache.diff attached.
It is okay. But I recommend that only method search at the the
`rb_method_entry_get_with_omod' shou... -
03:31 PM Bug #7111: New build option to enable/disable global method caching
- ko1 (Koichi Sasada) wrote:
> I don't have any objection.
> ...
I forgot to attach it:(
Please see opt_global_method_cache.diff attached. -
12:23 PM Bug #7111: New build option to enable/disable global method caching
- (2012/10/06 11:19), shugo (Shugo Maeda) wrote:
> Ruby has a build option to enable/disable inline method caching (OPT_INLINE_METHOD_CACHE), but has no such option for global method caching.
> How about to add a new build option OPT_... -
11:19 AM Bug #7111 (Closed): New build option to enable/disable global method caching
- Ruby has a build option to enable/disable inline method caching (OPT_INLINE_METHOD_CACHE), but has no such option for global method caching.
How about to add a new build option OPT_GLOBAL_METHOD_CACHE?
I've attached a patch to add th... -
02:26 PM Revision 974e3c9c (git): * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when
- DEFAULT_CONFIG_FILE does not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:22 PM Revision 0751c5d1 (git): reapply r37098
- UTF-16 and UTF-32 are also treated as unicode since r37101.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:36 AM Revision 960e8a41 (git): * vm_opts.h (OPT_GLOBAL_METHOD_CACHE): new build option to
- enable/disable global method caching. [ruby-dev:46203] [Bug #7111]
* vm_method.c (rb_method_entry_get_with_omod): don't use global
method cache if OPT_GLOBAL_METHOD_CACHE is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37106 ... -
07:32 AM Revision c29c44c4 (git): * vm_method.c (search_method): check omod only once for performance.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:47 AM Bug #7107: Ruby can no longer find constants in methods in anonymous modules
- =begin
Additionally, when the module is given a name it still can't find the constant:
module M
C = 1
def self.m
C
end
end
puts 'named module'
M.m
puts 'anonymous module'
m = M.dup... -
03:53 AM Bug #7109: File.utime doesn't set nanoseconds
- >> utimensat system call is required to set nanosecond filestamp.
>> It is available since Linux 2.6.22.
>> (glibc support is also required but I'm not sure the exact version.)
>>
>> I guess RHEL 5/CentOS 5 is older than that.
... -
03:04 AM Revision a9497d5a (git): Revert r37098
- This reverts
* encoding.c (rb_enc_unicode_p): oniguruma provides Unicode flag.
because UTF-16 and UTF-32 is also treated as unicode in this context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37104 b2dd03c8-39d4-4d8f-98ff-823fe69... -
02:07 AM Bug #7108: SIGABRT in st_lookup during long-running database+TCP program
- Awesome, thank you! I ended up reinstalling rbenv with homebrew and linked against a newer libssl. It appears to have solved my problem. Thanks for pointing me in the right direction!
-
12:50 AM Revision b1058ef4 (git): gc.c: use markable_object_p
- * gc.c (gc_mark_children): use markable_object_p() and reduce
duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:48 AM Revision 122de73a (git): test_objspace.rb: refine
- * test/objspace/test_objspace.rb (test_reachable_objects_from): use
proper assertions, and show messages than comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:42 AM Revision 928d1a52 (git): encoding.c: unicode_p
- * enc/encdb.c, enc/utf_16_32.h (ENC_DUMMY_UNICODE): endian-less wide
UTF encodings are dummy but Unicode.
* encoding.c (rb_encdb_set_unicode): set Unicode flag.
* template/encdb.h.tmpl: allow ENC_DUMMY variants.
git-svn-id: svn+ssh://...
10/05/2012
-
10:23 PM Feature #6637: Add HTML5 support to CGI
- =begin
Since this issue is already closed, I opened a new one, see #7110.
=end
-
10:22 PM Bug #7110 (Closed): CGI: Add support for HTML5 <header> tag
- =begin
These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637.
Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header elemen... -
07:13 PM Bug #6573: Webrick test failures
- Can somebody look into this issue, please? This is very annoying bug. When I am doing build for Fedora or Red Hat Enterprise Linux, it builds for more platforms at once in parallel, so there is higher chance to fail. Now I am doing alrea...
-
06:23 PM Bug #7109: File.utime doesn't set nanoseconds
- 2012/10/5 Bohuslav Kabrda <bkabrda@redhat.com>:
> True, kernel version is 2.6.19. So is there another way to solve this or do I have to get along with microseconds?
We can't set a timestamp without appropriate system call.
-... -
04:53 PM Bug #7109: File.utime doesn't set nanoseconds - ----- Original Message -----
> 2012/10/5 bkabrda (Bohuslav Kabrda) <bkabrda@redhat.com>:
>
> > I'm having a problem with File.utime on RHEL 5/CentOS 5. The
> > File.utime method seems not to set nanoseconds properly, see the
... -
04:23 PM Bug #7109: File.utime doesn't set nanoseconds
- 2012/10/5 bkabrda (Bohuslav Kabrda) <bkabrda@redhat.com>:
> I'm having a problem with File.utime on RHEL 5/CentOS 5. The File.utime method seems not to set nanoseconds properly, see the attached test case, that fails (the nanoseconds... -
03:47 PM Bug #7109 (Rejected): File.utime doesn't set nanoseconds - Hi,
I'm having a problem with File.utime on RHEL 5/CentOS 5. The File.utime method seems not to set nanoseconds properly, see the attached test case, that fails (the nanoseconds get rounded to thousand, so in fact I get microseconds). T... -
04:53 PM Bug #7097: Thread locals don't work inside Enumerator
- 2012/10/2 SASADA Koichi <ko1@atdot.net>:
> Akira-san:
> Could you give us your comments?
I think it is possible to add new methods for thread local storage.
--
Tanaka Akira -
04:22 PM Revision 5d316e77 (git): Adding a test for initialize_clone and initialize_dup. From Github:
- https://github.com/ruby/ruby/pull/190
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:14 PM Revision f6848bf1 (git): * 2012-10-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:14 PM Revision d5ac3f71 (git): encoding.c: unicode_p
- * encoding.c (rb_enc_unicode_p): oniguruma provides Unicode flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:30 PM Bug #7108 (Third Party's Issue): SIGABRT in st_lookup during long-running database+TCP program
- It's well known that libssl 0.9.8 bundled in MacOS X Mountain Lion is broken.
-
01:56 PM Bug #7108: SIGABRT in st_lookup during long-running database+TCP program
- Looks like some of that got cut off. I'll try it as files instead.
-
01:54 PM Bug #7108 (Third Party's Issue): SIGABRT in st_lookup during long-running database+TCP program
- I was running a pretty simple program that was using the `gmail` gem to retrieve email and then storing it using `activerecord` (without using all of Rails). After retrieving over 4,100 emails, I got a SIGABRT. Here's the output into the...
-
01:59 PM Bug #3781 (Closed): FIBER_USE_NATIVE が有効だと落ちるスクリプトがある
- r37075 でなおったと思います。
-
01:27 PM Feature #5033 (Closed): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
- I've committed part of your patch in r37075. Thanks!
-
11:10 AM Feature #6752: Replacing ill-formed subsequencce
- 今日のなるせさん、中田さんとのTwitter上での議論をもとにいくつかリクエスト(というか備忘録)
・個人的にはencode()よりも専用メソッド推し。理由は頻度。入力の正当性チェックなんてそこら中に需要あると思う
・メソッド名は replace_invalid_character みたいな思いっきり説明的な名前でいいような気がします。これをメソッドチェインしないでしょう。
あと、encode が invalid => replace なので用語合わせたほうがい... -
10:06 AM Bug #7107 (Closed): Ruby can no longer find constants in methods in anonymous modules
- =begin
With ruby 1.9 and newer C cannot be found if m is duplicated:
module M
C = 1
def self.m
C
end
end
puts 'named module'
M.m
puts 'anonymous module'
m = M.dup
m.m
Ruby 1.8:... -
09:21 AM Revision 3376ea81 (git): fix comments
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:19 AM Revision 4c0f022f (git): revert r37091
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:20 AM Revision ae114a8e (git): * template/Doxyfile.tmpl: remove SHOW_DIRECTORIES and
- HTML_ALIGN_MEMBERS lines. They have been obsolete in
Doxygen version 1.8.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:14 AM Revision e03d6d9e (git): * ext/objspace/objspace.c: add ObjectSpace#reachable_objects_from.
- This method returns an array of objects referenced by given object.
If given object is special objects such as true/false/nil/Fixnum etc
then it returns nil. See rdoc for details.
[ruby-core:39772]
* test/objspace/test_objspace.rb:... -
07:28 AM Revision 7cc6bfa3 (git): common.mk: gdb-ruby
- * Makefile.in (RUNRUBY_COMMAND): split from RUNRUBY.
* common.mk (gdb-ruby): use runruby.rb to set up library path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:25 AM Revision c38ee002 (git): ChangeLog: fix a miss
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:20 AM Revision 271f069c (git): * gc.c (chain_finalized_object): remove to check a mark flag and
- marking since all objects are certainly unmarked with rest_sweep.
* gc.c (rb_objspace_call_finalizer): remove to mark finalizable
objects. The sweeping doesn't push T_ZOMBIE objects to the
freelist.
git-svn-id: svn+ssh://ci.ruby-la... - 12:26 AM Revision 42fcb804 (git): * 2012-10-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:26 AM Revision e2220d19 (git): depend: missing dependency
- * ext/date/depend: all source files need ruby.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/04/2012
-
11:48 PM Feature #7095 (Closed): Non-recursive marking
- This issue was solved with changeset r37088.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (init_heap): call init_mark_stack before to allocate
... -
11:00 AM Feature #7095 (Assigned): Non-recursive marking
- authorNari (Narihiro Nakamura) wrote:
> This issue was solved with changeset r37075.
> ...
この変更以降、Linux 32bit 環境で SEGV 時の backtrace がでなくなっているので確認お願いします。
% ./ruby -e'Process.kill :SEGV, $$'
-e:1: [BUG] Segmentation fault
ruby 2.0.0... -
08:48 PM Feature #6637 (Feedback): Add HTML5 support to CGI
- I need your full support patch to support the complete HTML5.
I will write "patch by stomar" to log, I promise.
Please provide. -
07:32 PM Feature #6637: Add HTML5 support to CGI
- =begin
Hi Takeyuki,
Did you consider the issue with the <header> tag?
At the moment it can not be created with the tag writer
like the other tags. I proposed a possible solution
in my previous posts.
Do you have any thoughts ab... -
11:20 AM Feature #6637 (Closed): Add HTML5 support to CGI
- This issue was solved with changeset r37077.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/html5.rb: Add html5 tag maker.
* lib/cgi/core.rb:... -
11:03 AM Feature #6637: Add HTML5 support to CGI
- Sorry, I was into other cgi performance tuning.
I will commit immediately. -
07:32 PM Feature #7106 (Open): FileUtils.touch should allow touching the symlink itself rather than the file the link points to
- Most systems support POSIX lutimes sys call that allows a symlink to be touched. I'd like to see this feature implemented.
Unfortunately I'd like to see this feature on Solaris as soon as possible but I cannot see lutimes syscall suppor... -
04:57 PM Bug #6941 (Closed): ID_H_TARGET no longer created after running make
- Now id.h doesn't depend on parse.y since r36864.
-
02:48 PM Revision ec62e301 (git): * gc.c (init_heap): call init_mark_stack before to allocate
- altstack. This change avoid the stack overflow at the signal
handler on 32bit, but I don't understand reason... [Feature #7095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:52 PM Revision 08c8605d (git): * insns.def (getlocal, setlocal): remove old getlocal/setlocal
- instructions and rename getdaynmic/setdynamic instructions
to getlocal/setlocal.
* compile.c: ditto.
* iseq.c: remove TS_DINDEX.
* vm_exec.h (dindex_t): remove type definition of `dindex_t'.
* tool/instruction.rb: ditto.
git-svn-id:... -
12:48 PM Revision 326e22e1 (git): * vm.c (vm_analysis_insn|operand|register): use st_insert
- instead of using rb_hash_aset() because rb_hash_aset()
check $SAFE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:31 PM Revision 23dc0dbc (git): * vm.c (VM_COLLECT_USAGE_DETAILS): make new VM usage analysis
- hooks (old macro name is COLLECT_USAGE_ANALYSIS).
This feature is only for VM developers. (I'm not sure I can use
`VM developers' (the plural form) in this sentence).
If VM_COLLECT_USAGE_DETAILS is not 0, VM enables the following
... -
11:43 AM Bug #7084 (Closed): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
- This issue was solved with changeset r37080.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: precise stack size
* thread_pthread.c (ruby_i... -
02:22 AM Bug #7084 (Open): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
- まだ直ってません。ulimit -s 32768 の場合はきちんと SystemStackError で終了しましたが、
ulimit -s 4096 の場合に Segmentation Fault が発生しています。
さっき追加で調査した結果を以下に述べます。
https://gist.github.com/3828296
この gist に貼った 1.patch を当てて問題をコードを実行すると、
1.log として貼付けたように iseq_compi... -
10:00 AM Revision b1ad7977 (git): * test/ruby/test_settracefunc.rb (test_tracepoint):
- remove unused test case.
(this test case is redefined by newer tests)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:34 AM Revision 2f9f17ac (git): * gc.c (rb_objspace_call_finalizer): call gc_mark_stacked_objects
- at suitable point.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:31 AM Revision 6aa2aabd (git): gc.c: self-referencing finalizers
- * gc.c (rb_objspace_call_finalizer): mark self-referencing finalizers
before run finalizers, to fix SEGV from btest on 32bit.
* gc.c (gc_mark_stacked_objects): extract from gc_marks().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk... -
07:23 AM Revision 6fa2980e (git): * gc.c: use enum for debugging.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:55 AM Bug #7105 (Closed): Socket documentation fix
- The "Quick start" section of the Socket documentation refers to the Socket::INET constant, which doesn't exist. I've attached a small patch changing the reference to Socket::AF_INET, which seems consistent with the rest of the documentat...
-
02:43 AM Revision fab7e661 (git): thread_pthread.c: precise stack size
- * thread_pthread.c (ruby_init_stack): round stack limit to page size
boundary to calculate stack size more precisely. [ruby-dev:46174]
[Bug #7084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37080 b2dd03c8-39d4-4d8f-98ff-823f... -
02:39 AM Revision cbe3646e (git): * thread_pthread.c (RUBY_STACK_MIN_LIMIT): name magic number.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:21 AM Revision 6ed36284 (git): * 2012-10-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:20 AM Revision aeca9656 (git): * lib/cgi/html5.rb: Add html5 tag maker.
- * lib/cgi/core.rb: ditto.
[Feature #6637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/03/2012
-
09:30 PM Feature #7095 (Closed): Non-recursive marking
- This issue was solved with changeset r37075.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Use the non-recursive marking instead of recursion. T... -
06:38 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
- これって,r37072 で直ったんでしょうか.
-
03:33 PM Bug #7084 (Closed): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
- This issue was solved with changeset r37072.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: init stack with ulimit
* thread_pthread.c (ru... -
05:30 PM Bug #7080: Segmentation Fault (sometimes) when running script
- This fix does work, with on caveat:
When your instructions say to run
"gem install mysql --platform=ruby -- --with-mysql-dir=C:/mysql-connector-c-noinstall-6.0.2-win32"
I had to download mysql 2.8.1-x86-mingw32 and install from my... -
01:23 PM Revision 4336caf2 (git): gc.c: unused function
- * gc.c (free_stack_chunks): it is used only when per-VM object space
is enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:30 PM Revision 8d53a08e (git): * gc.c: Use the non-recursive marking instead of recursion. The
- recursion marking of CRuby needs checking stack overflow and the
fail-safe system, but these systems not good at partial points,
for example, marking deep tree structures. [ruby-dev:46184]
[Feature #7095]
* configure.in (GC_MARK_S... -
12:18 PM Feature #7047: Add new C API: rb_newobj_with
- kou (Kouhei Sutou) wrote:
> rb_obj_new()はどうでしょうか。
> ...
ありがとうございます。
でも、おっしゃる通りすこし紛らわしい気がしますねぇ。 -
11:43 AM Feature #7103 (Closed): Improved IO#reopen which accepts optional hash
- This issue was solved with changeset r37071.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: improved IO#reopen
* io.c (rb_io_reopen): improvement to... -
07:58 AM Revision f6d0cb46 (git): ChangeLog: fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:33 AM Revision 396903d3 (git): depend: dependency
- * ext/json/generator/depend: fix missing dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:33 AM Revision 54c17dc8 (git): thread_pthread.c: init stack with ulimit
- * thread_pthread.c (ruby_init_stack): use getrlimit() for the main
thread on Mac OS X, since pthread_get_stack{addr,size}_np() and
return the default value always, but not the ulimit value.
[ruby-dev:46174] [Bug #7084]
git-svn-id:... -
05:59 AM Bug #7097: Thread locals don't work inside Enumerator
- >> I'm afraid compatibility breakage. mame-san said:
>
> Maybe I wasn't clear. I think we should leave Thread#[] behavior as-is.
> We can add new methods for accessing thread locals. This will maintain
> backwards compatibilit... -
03:53 AM Bug #7097: Thread locals don't work inside Enumerator - On Wed, Oct 03, 2012 at 02:46:02AM +0900, KOSAKI Motohiro wrote:
> >> For example:
> >>
> >> Thread[:foo] = :bar
> >> Fiber.new(derive_fiber_local_storage: true) do
> >> Thread[:foo] #=> :bar
> >> end
> >>
> ... -
03:47 AM Bug #7097: Thread locals don't work inside Enumerator
- Here is a patch to implement thread locals. It just sets a hash on the thread that you can access via Thread#get_local and Thread#set_local. We should probably add a Thread#local? to test for keys.
-
02:53 AM Bug #7097: Thread locals don't work inside Enumerator
- >> For example:
>>
>> Thread[:foo] = :bar
>> Fiber.new(derive_fiber_local_storage: true) do
>> Thread[:foo] #=> :bar
>> end
>>
>> And use Fiber in enumerator with this option true.
>
> I think the "... -
02:43 AM Revision 5c677a83 (git): io.c: improved IO#reopen
- * io.c (rb_io_reopen): improvement to accept optional arguments.
a patch by Glass_saga (Masaki Matsushita) in [ruby-core:47806].
[Feature #7103]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37071 b2dd03c8-39d4-4d8f-98ff-823fe69...
10/02/2012
-
11:51 PM Feature #7103 (Closed): Improved IO#reopen which accepts optional hash
- I propose improved IO#reopen which accepts optional hash.
The new IO#reopen has the same interface as IO.open and it enables us to reopen IO with full configuration.
I have attached a patch.
I have removed mode_enc() and rb_io_mode_... -
10:29 PM Feature #7047: Add new C API: rb_newobj_with
- rb_obj_new()はどうでしょうか。
rb_obj_がprefixのみなさんとまぎらわしいかしら。 -
07:36 PM Revision 48af304c (git): * ext/openssl/ossl_x509store.c (ossl_x509store_add_file): Added
- documentation
* ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
ditto
* ext/openssl/ossl_x509store.c (ossl_x509store_add_cert): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37070 b2dd03c8-39d4-4d8f-98ff-8... - 05:25 PM Revision a0ead9fc (git): * 2012-10-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:25 PM Revision a1ed68b9 (git): * error.c (exc_to_s, name_err_to_s, name_err_mesg_to_str): do not
- taint messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:21 PM Bug #7100 (Closed): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
- =begin
以下のようにすると必ず警告が記録されるようです。
$ ruby -v -r webrick -e 'WEBrick::HTTPServer.new(Port: 3000)'
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[2012-09-04 19:20:48] INFO WEBrick 1.3.1
[2012-09-04 19:20:48] INFO ... -
03:11 PM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- rklemme (Robert Klemme) wrote:
> shugo (Shugo Maeda) wrote:
> ...
I heard the word "reentrant mutex" in the late 90's, but I don't know whether it's Java's invention or not.
> Monitor on the other hand is reentrant and so is synchro... -
03:47 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- shugo (Shugo Maeda) wrote:
> kosaki (Motohiro KOSAKI) wrote:
> ...
Mutex is not reentrant so there is one reason why Mutex cannot be designed after Java monitor. Monitor on the other hand is reentrant and so is synchronize in Java. R... -
02:53 PM Bug #7097: Thread locals don't work inside Enumerator - On Tue, Oct 02, 2012 at 10:34:47AM +0900, SASADA Koichi wrote:
> (2012/10/02 9:42), Aaron Patterson wrote:
> > On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
> >> (2012/10/02 8:22), SASADA Koichi wrote:
> >>>
> >>> ... -
10:53 AM Bug #7097: Thread locals don't work inside Enumerator
- (2012/10/02 9:42), Aaron Patterson wrote:
> On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
>> (2012/10/02 8:22), SASADA Koichi wrote:
>>>
>>> One idea is:
>>>
>>> - Define: Thread#[] -> Thred#current_fiber#... -
09:53 AM Bug #7097: Thread locals don't work inside Enumerator - On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
> (2012/10/02 8:22), SASADA Koichi wrote:
> >
> > One idea is:
> >
> > - Define: Thread#[] -> Thred#current_fiber#[]
> > - Add: Thread#truly_thread_local_get(key... -
08:53 AM Bug #7097: Thread locals don't work inside Enumerator
- (2012/10/02 8:32), SASADA Koichi wrote:
> Add an option to derive Fiber local storage at a Fiber creation.
Sorry, `derive' is not a correct word. I want to say `share'.
--
// SASADA Koichi at atdot dot net -
08:53 AM Bug #7097: Thread locals don't work inside Enumerator
- (2012/10/02 8:22), SASADA Koichi wrote:
>
> One idea is:
>
> - Define: Thread#[] -> Thred#current_fiber#[]
> - Add: Thread#truly_thread_local_get(key)
> and Thread#truly_thread_local_set(key, val)
>
> (of cou... -
08:23 AM Bug #7097: Thread locals don't work inside Enumerator
- (2012/10/02 3:12), Aaron Patterson wrote:
>> > I guess it's a side effect to use Fiber in Enumerator internal.
> Yes, it is. I don't know why Fibers impact thread locals, but I hope
> this test demonstrates how it can cause probl... -
03:53 AM Bug #7097: Thread locals don't work inside Enumerator
- On Mon, Oct 1, 2012 at 2:24 PM, KOSAKI Motohiro
<kosaki.motohiro@gmail.com> wrote:
> On Mon, Oct 1, 2012 at 2:12 PM, Aaron Patterson
> <tenderlove@ruby-lang.org> wrote:
>> On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohi... -
03:29 AM Bug #7097: Thread locals don't work inside Enumerator
- On Mon, Oct 1, 2012 at 2:12 PM, Aaron Patterson
<tenderlove@ruby-lang.org> wrote:
> On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohiro KOSAKI) wrote:
>>
>> Issue #7097 has been updated by kosaki (Motohiro KOSAKI).
>>
... -
03:23 AM Bug #7097: Thread locals don't work inside Enumerator - On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohiro KOSAKI) wrote:
>
> Issue #7097 has been updated by kosaki (Motohiro KOSAKI).
>
> Status changed from Open to Assigned
> Assignee set to ko1 (Koichi Sasada)
>
> I guess... -
03:05 AM Bug #7097 (Assigned): Thread locals don't work inside Enumerator
- I guess it's a side effect to use Fiber in Enumerator internal.
ko1: what do you think?
-
02:58 AM Bug #7097 (Closed): Thread locals don't work inside Enumerator
- I set a thread local outside an Enumerator. The Enumerator runs inside the same thread where I set the local. I would expect the thread local to be available since I am in the same thread, but it is not.
Here is a test that shows th... -
02:38 PM Feature #7095: Non-recursive marking
- パッチのレビューありがとうございます!
kosaki (Motohiro KOSAKI) wrote:
> 2012/10/1 SASADA Koichi <ko1@atdot.net>:
> ...
(snip)
> > 遅くなっていない,ということで,デメリットが思いつかないのでよろしいの
> ...
いろいろ気にしすぎました…。
この辺はあんまり効果なさそうなのでテキトーに決め打ちしたいと思います。
pageは紛らわしいのでchunkとか、segmentがい... -
03:23 AM Feature #7095: Non-recursive marking
- 2012/10/1 SASADA Koichi <ko1@atdot.net>:
> (2012/10/02 0:21), authorNari (Narihiro Nakamura) wrote:
>>
>> Issue #7095 has been reported by authorNari (Narihiro Nakamura).
>>
>> ----------------------------------------
>> Bug... -
01:23 AM Feature #7095: Non-recursive marking
- (2012/10/02 0:21), authorNari (Narihiro Nakamura) wrote:
>
> Issue #7095 has been reported by authorNari (Narihiro Nakamura).
>
> ----------------------------------------
> Bug #7095: Non-recursive marking
> https://bugs.r... -
12:21 AM Feature #7095 (Closed): Non-recursive marking
- nariです。
GCのマーキングで関数の再帰呼び出しを使わないバージョンを書いてみました。
差分: https://github.com/authorNari/ruby/compare/non_recursion_marking
パッチ: https://github.com/authorNari/ruby/compare/non_recursion_marking.patch
= 現状の問題点
現在のマークは、基本的にはオブジェクト、子オブジェク... -
01:17 PM Bug #6900 (Closed): execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
- Fix committed in r37062.
-
08:28 AM Bug #7099 (Closed): Fixing some grammar in thread.c docs
- Just some small grammar fixes, nothing huge.
- 07:47 AM Revision a63bde6d (git): * 2012-10-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:47 AM Revision a416367b (git): eval.c: hide internal hash
- * eval.c (identity_hash_new): hide internal hashes for refinements.
* eval.c (rb_mod_refine): no default value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:12 AM Feature #5531: deep_value for dealing with nested hashes
- I think there is a strong case for this logic built in to ruby.
-
12:09 AM Feature #6737: Add Hash#read and alias as #[].
- =begin
I attempted to use #fetch as the CRUD method of reading and ran into an issue that may make it infeasible. Because #fetch accepts an argument or block for the default, it never handles the instance-level default or default_proc. I...
10/01/2012
-
06:43 PM Feature #7091: Object#puts_to
- nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
Thank you, Nobu. Hadn't seen this before. I wish to have similar syntax for output in file by filename, but this is also good enough. -
06:31 PM Feature #7091: Object#puts_to
- Don't you feel that mixing function call and method-chain is ugly? This was the main reason why I proposed this method, not inability to do this.
In case that expression is full of curl-braces and so on, additional level of "brace-deepn... -
10:30 AM Feature #7091: Object#puts_to
- =begin
readlines.sort.map{...}.select{...}.display($stderr)
=end
-
12:54 AM Feature #7091 (Rejected): Object#puts_to
- =begin
There are several ways to do this just as easily:
Write to $stdout:
puts(*readlines.sort.map{...}.select{...})
Write to $stderr:
$stderr.puts(*readlines.sort.map{...}.select{...})
Write to 'file.txt':
File... -
06:38 PM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- kosaki (Motohiro KOSAKI) wrote:
> monitor is based on Java monitor semantics.
My Java knowledge is rusted, but monitor is not based on Java monitor semantics, at least when it was designed. Java's monitor mechanism mixes a mutex and... -
02:52 PM Revision 39ef471e (git): * ChangeLog: fix typos of r37064.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:56 PM Revision e56eb1b1 (git): * eval.c (identify_hash_new): new function to create a new identity
- hash.
* eval.c (rb_overlay_module, rb_mod_using, rb_mod_refine): use
identify_hash_new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:29 PM Feature #7047: Add new C API: rb_newobj_with
- (2012/10/01 13:15), authorNari (Narihiro Nakamura) wrote:
> with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
> 何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
> とおっしゃってました。new obj of class みたいな意味で。
>
> * rb_newobj_of(klass, VALU... -
01:15 PM Feature #7047: Add new C API: rb_newobj_with
- ko1 (Koichi Sasada) wrote:
> (2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> ...
まつもとさんに直接意見を聞いてみました。
with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
とおっしゃってました。new obj of clas... -
07:59 AM Feature #7047: Add new C API: rb_newobj_with
- (2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> rb_newobj_with(klass, VALUE flags) でパッチを修正しました。
flags を取るようにしたので,rb_newobj_with_flags でどうでしょうか.
何かしら,マクロで隠蔽して,実質こいつは呼ばない,となると,長い名前でも
良いのではないか,と思うのですが(別に長くてもいいか?).
... -
06:38 AM Bug #7092 (Rejected): StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
- To reproduce:
>> require 'strscan'
>> ss = StringScanner.new("ab")
>> ss.scan(/./)
=> "a"
>> ss.scan(/^./) # expecting nil, since the head is in the middle of a line
=> "b"
As a workaround-that-didn't-w...
09/30/2012
-
11:40 PM Feature #7091 (Rejected): Object#puts_to
- I suggest a new method Object#puts_to(io_or_filename) (or BasicObject#puts_to)
It's usual that one-two-three-line scripts have big chains like
readlines.sort.map{...}.select{...} and so on and after you wrote such a monstruous expres... -
11:40 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- =begin
A single dot is very unobtrusive. So I just think that `.foo` and `foo` resp. `@.foo` and `@foo` would look too similar to be easily distinguished, especially when browsing through larger pieces of code.
=end
=end
-
06:07 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- @stomar, maybe you are right that `self.foo =` is more readable than `@.foo =` or `.foo =`, especially for someone who would see it for the first time. However, then it seems to me that `bar = self.foo()` is also more readable than just...
-
02:57 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
- =begin
I think that would decrease readability of the code quite a lot (even more so for the first suggestion) and I don't see ((*any*)) benefit. It's only four characters.
=end
-
09:53 PM Bug #7085: Subversion → GitHub gateway stops.
- Hi, I guess you use a fixed SSH_AUTH_SOCK ? Then it's OK as long as you carefully
restrict the socket's permission. Anyone can read form the socket can fake you.
Anyway that's a normal security (not colo-specific). So go ahead, w... -
04:23 PM Bug #7085: Subversion → GitHub gateway stops.
- Yes, it is possible. If you're comfortable with this, I can set it up as soon as I have the gateway code.
- Evan // via iPhone
On Sep 29, 2012, at 6:27 PM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
> On 09/30/2012 02:... -
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
- On 09/30/2012 02:33 AM, Evan Phoenix wrote:
> Hello shyouhei,
>
> I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent.... -
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
- Hello.
On 09/30/2012 02:21 AM, Luis Lavena wrote:
> Thank you Shyouhei Urabe,
>
> Wouldn't be possible setup the bridge on same subversion server so it doesn't require ssh keys to push?
Yes, SSH key business is not need... -
02:53 AM Bug #7085: Subversion → GitHub gateway stops.
- Hello shyouhei,
I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent. The machine in question will only run the gateway, ... -
02:23 AM Bug #7085: Subversion → GitHub gateway stops.
- Thank you Shyouhei Urabe,
Wouldn't be possible setup the bridge on same subversion server so it
doesn't require ssh keys to push?
The idea is: subversion repository is local, so is git repository.
We expose git repo too... -
09:38 PM Bug #6900: execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
- knu (Akinori MUSHA) wrote:
> 手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local を付けてもLIBRUBY_SOのビルドでこけます。
> ...
なるほど、コミットしてください -
09:20 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
- This issue was solved with changeset r37058.
Stefan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_concat): use memcpy to copy a string which c... -
08:34 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
- With older Ruby version: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
the string correctly contains 0x20, 0x300 for UTF-8, UTF-16LE and UTF-16BE. -
08:30 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
- UTF-16BE
irb(main):003:0> s = "".force_encoding('utf-16be')
=> ""
irb(main):004:0> s << 0x20
=> "\u0000"
irb(main):005:0> s << 0x300
=> "\u0000\u0300" -
08:18 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
- $ irb193 -r unicode_utils/u
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> s1 = "".force_encoding('utf-16le')
=> ""
irb(main):003:0> s1 << 0x20
=> " "
irb(main):004:0> s1 << 0x300
=> " \u0000"
irb(... -
08:23 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
- (2012/09/29 23:11), mrkn (Kenta Murata) wrote:
>
> ulimit -s の値に依存して SEGV してしまう場合があるので、それだけでも直したいです。
ulimit -s の値に依存せず SEGV するのはもっと嫌な気がしますが,それはと
もかく,直るのなら大変結構なことだと思います.よろしくお願いします.
--
// SASADA Koichi at atdot dot net -
08:22 PM Bug #7089 (Feedback): Rails server refuses to start
- Is pg_ext.bundle compiled for the version of Ruby you have? (1.9.3-p194 x86_64-darwin11.4.2)
A segfault from your vendor/bundle most likely is coming from a extension that wasn't compiled for that particular version of Ruby.
Can yo... -
06:13 PM Bug #7089 (Closed): Rails server refuses to start
- denis:questicker/ (master✗) $ rs [13:11:25]
/Users/denis/code/questicker/vendor/bundle/gems/pg-0.14... - 05:36 PM Revision a0f43fad (git): * 2012-10-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:36 PM Revision 1d695c36 (git): * configure.in (--with-opt-dir): Make this also work on DLDFLAGS
- so LIBRUBY_SO links fine with libexecinfo installed in a
non-system directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:34 PM Revision 0d3cd411 (git): * vm_dump.c (rb_vm_bugreport): add /Library/Logs/DiagnosticReports
- in the list of locations of crash reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:32 PM Revision 173aacf9 (git): * test/ruby/test_enumerator.rb (enum_test, test_inspect): remove unused
- variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:20 PM Revision ab5545ee (git): * 2012-09-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:20 PM Revision 64989fa5 (git): * string.c (rb_str_concat): use memcpy to copy a string which contains
- NUL characters. [ruby-core:47751] [Bug #7090]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:44 AM Feature #7086: ConditionVariable#wait has meaningless return value
- kosaki (Motohiro KOSAKI) wrote:
> I think Java API spec is crazy and buggy.
:-)
> ...
There is some truth in what you write. In the usual case you certainly need to check your condition. But I think nevertheless that the Java wa... -
12:47 AM Feature #7086: ConditionVariable#wait has meaningless return value
- I think Java API spec is crazy and buggy. It explicitly says:
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html#await(long,%20java.util.concurrent.TimeUnit)
> When waiting upon a Condition, a "spu... -
12:21 AM Feature #7086: ConditionVariable#wait has meaningless return value
- rklemme (Robert Klemme) wrote:
> There's another issue exhibited through the script but I will create a separate ticket for this.
That is bug #7087 now. -
12:14 AM Feature #7086 (Assigned): ConditionVariable#wait has meaningless return value
- I consider this an API bug: when invoked with a timeout value the caller cannot distinguish from the return value whether the condition has been signaled or the time has run out. Consider how Java does it: http://docs.oracle.com/javase/...
-
01:32 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- kosaki (Motohiro KOSAKI) wrote:
> At least, this is intentional. condtion variable and monitor have different inspiration source.
> ...
For me the difference between Mutex and Monitor is only reentrancy. Other than that I'd have expec... -
12:52 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- At least, this is intentional. condtion variable and monitor have different inspiration source.
condition variable is based on POSIX CV and monitor is based on Java monitor semantics. To be
honest, I'm not familiar Java's conditon vari... -
12:19 AM Feature #7087 (Assigned): ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
- See program attached to bug #7086: timeout_4 always throws:
ERROR: method "timeout_4": #<NoMethodError: private method `sleep' called for #<Monitor:0x87e49f8>>
$ irb19 -r monitor
irb(main):001:0> Monitor.new.method(:sleep)
=> #<M... -
01:00 AM Bug #7088 (Closed): Documentation of Timeout::timeout is wrong about which thread executes the block
- See http://rubydoc.info/stdlib/timeout/Timeout#timeout-class_method - it reads "The block will be executed on another thread and will be given one argument: sec." If you make the source code visible or look into the file timeout.rb in t...