From 663833b08fbae8d92cb2245a729312b86aa33a35 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 20 Jan 2022 16:23:43 -0500 Subject: [wasm] Disallow compaction WebAssembly doesn't support signals so we can't use read barriers so we can't use compaction. --- test/ruby/test_gc_compact.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index 50abd28ad3..16b15b39ac 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -18,6 +18,7 @@ class TestGCCompact < Test::Unit::TestCase private def supports_auto_compact? + return false if /wasm/ =~ RUBY_PLATFORM return true unless defined?(Etc::SC_PAGE_SIZE) begin -- cgit v1.2.3