Project

General

Profile

Actions

Bug #18560

closed

"Compaction isn't available on this platform" error running PG test suite on ppc64le

Added by vo.x (Vit Ondruch) almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [powerpc64le-linux]
[ruby-core:107392]

Description

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?


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #18779: `GC.compact` and other compaction related methods should be defined as rb_f_notimplement on non supported platforms. ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0