Commit ac37fe9
authored
update tests to match new reentrance rules (#596)
Recent discussions [^1] regarding optimizing reentrance checks in fused adapters
have resulted in a plan to disallow lowering a lift where the lowering instance
is an ancestor of the lifting instance or vice-versa. A bunch of tests in
`fused.wast` were doing that, so I've updated them to not do that.
In addition, I'm about to open a Wasmtime PR to enforce the new rule and subsume
existing code that created "degenerate adapter" functions for self-to-self
lift/lower pairs. Consequently, I've updated `adapter.wast` to expect a "cannot
enter component instance" trap instead of a "degenerate component adapter" one.
[^1]: https://bytecodealliance.zulipchat.com/#narrow/channel/217126-wasmtime/topic/Wasmtime.20sync.3C-.3Esync.20adapter.20optimizability1 parent 0b951b7 commit ac37fe9
2 files changed
+198
-166
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments