[#107008] [Ruby master Bug#18465] Make `IO#write` atomic. — "ioquatix (Samuel Williams)" <noreply@...>
Issue #18465 has been reported by ioquatix (Samuel Williams).
16 messages
2022/01/09
[#107150] [Ruby master Feature#18494] [RFC] ENV["RUBY_GC_..."]= changes GC parameters dynamically — "ko1 (Koichi Sasada)" <noreply@...>
Issue #18494 has been updated by ko1 (Koichi Sasada).
4 messages
2022/01/17
[#107170] Re: [Ruby master Feature#18494] [RFC] ENV["RUBY_GC_..."]= changes GC parameters dynamically
— Eric Wong <normalperson@...>
2022/01/17
> https://bugs.ruby-lang.org/issues/18494
[#107302] [Ruby master Bug#18553] Memory leak on compiling method call with kwargs — "ibylich (Ilya Bylich)" <noreply@...>
Issue #18553 has been reported by ibylich (Ilya Bylich).
4 messages
2022/01/27
[#107346] [Ruby master Misc#18557] DevMeeting-2022-02-17 — "mame (Yusuke Endoh)" <noreply@...>
Issue #18557 has been reported by mame (Yusuke Endoh).
18 messages
2022/01/29
[ruby-core:107308] [Ruby master Feature#18552] Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
From:
"byroot (Jean Boussier)" <noreply@...>
Date:
2022-01-27 22:42:21 UTC
List:
ruby-core #107308
Issue #18552 has been updated by byroot (Jean Boussier). > The name rb_singleton_class_get() doesn't seem great though. Yeah, it could definitely be expose under another name. > bool has_singleton_class = rb_class_of(obj) != rb_obj_class(obj); I don't follow, how could this expression ever be false? ---------------------------------------- Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions https://bugs.ruby-lang.org/issues/18552#change-96207 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal ---------------------------------------- Right now the only way to check wether an object has a singleton class is to do something akin to: ```c !SPECIAL_CONST(obj) && FL_TEST(RBASIC(obj)->klass, FL_SINGLETON); ``` Which doesn't seem very clean. ### Use case This came up in `msgpack`. The library have a registry of serializers on a per class basis, and wish to support singleton classes too. So it is calling `rb_singleton_class()` which cause lots of useless singleton classes to be created: https://github.com/msgpack/msgpack-ruby/pull/245 ### Proposed patch https://github.com/ruby/ruby/pull/5499 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>