Skip to content

Commit 6534a25

Browse files
committed
Clone abi_version_
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent ed67cbc commit 6534a25

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/v8/v8.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ std::unique_ptr<WasmVm> V8::clone() {
327327

328328
clone->module_ = wasm::Module::obtain(clone->store_.get(), shared_module_.get());
329329
clone->function_names_index_ = function_names_index_;
330+
clone->abi_version_ = abi_version_;
330331

331332
return clone;
332333
}

src/wasmtime/wasmtime.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ std::unique_ptr<WasmVm> Wasmtime::clone() {
157157
clone->integration().reset(integration()->clone());
158158
clone->store_ = wasm_store_new(engine());
159159
clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get());
160+
clone->abi_version_ = abi_version_;
161+
160162
return clone;
161163
}
162164

src/wavm/wavm.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ Wavm::~Wavm() {
279279
std::unique_ptr<WasmVm> Wavm::clone() {
280280
auto wavm = std::make_unique<Wavm>();
281281
wavm->integration().reset(integration()->clone());
282+
wavm->abi_version_ = abi_version_;
282283

283284
wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_);
284285
wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_);

0 commit comments

Comments
 (0)