Skip to content

Use module definition instead of assert_unlinkable hack - #60

Merged
fitzgen merged 1 commit into
mainfrom
use-module-definition-in-memory-max-tests
Jun 15, 2026
Merged

Use module definition instead of assert_unlinkable hack#60
fitzgen merged 1 commit into
mainfrom
use-module-definition-in-memory-max-tests

Conversation

@fitzgen

@fitzgen fitzgen commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

We previously used linking errors as a hack to avoid actually allocating memories of the maximum representable size in these tests, but it turns out that (module definition ...) validates but does not instantiate a module, which is exactly what we need here.

@rossberg PTAL

We previously used linking errors as a hack to avoid actually allocating
memories of the maximum representable size in these tests, but it turns out that
`(module definition ...)` validates but does not instantiate a module, which is
exactly what we need here.
@fitzgen
fitzgen requested a review from rossberg June 15, 2026 19:09
@fitzgen

fitzgen commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

CI seems broken, something to do with downloading ocaml tools. Unrelated to this PR, so I'll go ahead and merge.

@fitzgen
fitzgen merged commit 583fe1e into main Jun 15, 2026
0 of 2 checks passed
@fitzgen
fitzgen deleted the use-module-definition-in-memory-max-tests branch June 15, 2026 21:38
@rossberg

Copy link
Copy Markdown
Member

The YAML file in this repo looks outdated. Syncing with upstream should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants