diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2022-01-20 16:23:43 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2022-01-24 09:21:08 -0500 |
| commit | 663833b08fbae8d92cb2245a729312b86aa33a35 (patch) | |
| tree | 44ed5ece69bdda97c9ef63547cc37131b2f66cef /test/ruby | |
| parent | 5de62fe37c16033e5dedc51ae9f2dea5db7ecd5a (diff) | |
[wasm] Disallow compaction
WebAssembly doesn't support signals so we can't use read
barriers so we can't use compaction.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5475
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_gc_compact.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
