[#107430] [Ruby master Feature#18566] Merge `io-wait` gem into core IO — "byroot (Jean Boussier)" <noreply@...>
Issue #18566 has been reported by byroot (Jean Boussier).
22 messages
2022/02/02
[ruby-core:107422] [Ruby master Bug#18560] "Compaction isn't available on this platform" error running PG test suite on ppc64le
From:
"Eregon (Benoit Daloze)" <noreply@...>
Date:
2022-02-01 21:27:57 UTC
List:
ruby-core #107422
Issue #18560 has been updated by Eregon (Benoit Daloze).
FWIW, TruffleRuby has `Primitive.method_unimplement` specifically to achieve to achieve the same as `rb_f_notimplement` but in Ruby code.
Example usage: https://github.com/oracle/truffleruby/blob/4eddae9d18137567beb25e6e4ef2c932fa9de7ab/src/main/ruby/truffleruby/core/kernel.rb#L759
----------------------------------------
Bug #18560: "Compaction isn't available on this platform" error running PG test suite on ppc64le
https://bugs.ruby-lang.org/issues/18560#change-96322
* Author: vo.x (Vit Ondruch)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [powerpc64le-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Trying to execute test suite of `pg` gem on ppc64le, I observe a following error:
~~~
... snip ...
1) GC.compact should compact PG::TypeMapByClass #328
Failure/Error: GC.verify_compaction_references(toward: :empty, double_heap: true)
NotImplementedError:
Compaction isn't available on this platform
# <internal:gc>:257:in `verify_compaction_references'
# ./spec/pg/gc_compact_spec.rb:58:in `block (2 levels) i
... snip ...
~~~
This is surprising, given that the test suite seems to do reasonable effort to guard this behavior [1]:
~~~
... snip ...
describe "GC.compact", if: GC.respond_to?(:compact) do
... snip ...
~~~
Is this expected or bug?
[1]: https://github.com/ged/ruby-pg/blob/6c436bda9aaf7bc053ef348afd99e2e035d5d0a3/spec/pg/gc_compact_spec.rb#L26
--
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>