Skip to content

Kotlin benchmarks fails with memory allocation when collector is not drc #13756

Description

@igoriakovlev

Test Case

issue.zip

Steps to Reproduce

Run the following command:
wasmtime -W gc,exceptions,function-references --dir=/ $PWD/kotlin-wasm-benchmarks-wasmWasiBenchmark.wasm STUB $PWD/config.conf StringBenchmark microBenchmarks.StringBenchmark.stringConcatNullable

Expected Results

Benchmarks are running.

Actual Results

GC heap out of memory: no capacity for allocation of 96 bytes when -C collector=copying
wasm trap: allocation size too large when -C collector=null

Versions and Environment

Wasmtime version or commit: 46.0.1

Operating system: MacOS 26.5.1

Architecture: Apple Silicon

Extra Info

With -C collector=drc benchmarks works good. Seems since 46.0.1 the default GC was changed from drc to copying so tests are now fails.

Metadata

Metadata

Assignees

Labels

bugIncorrect behavior in the current implementation that needs fixingwasm-proposal:gcIssues with the implementation of the gc wasm proposal

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions