File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
16
16
#include " include/proxy-wasm/wavm.h"
17
+ #include " include/proxy-wasm/wasm_vm.h"
17
18
18
19
#include < cstdlib>
19
20
#include < iostream>
24
25
#include < utility>
25
26
#include < vector>
26
27
27
- #include " include/proxy-wasm/wasm_vm.h"
28
-
29
28
#include " WAVM/IR/Module.h"
30
29
#include " WAVM/IR/Operators.h"
31
30
#include " WAVM/IR/Types.h"
@@ -253,6 +252,8 @@ Wavm::~Wavm() {
253
252
254
253
std::unique_ptr<WasmVm> Wavm::clone () {
255
254
auto wavm = std::make_unique<Wavm>();
255
+ wavm->integration ().reset (integration ()->clone ());
256
+
256
257
wavm->compartment_ = WAVM::Runtime::cloneCompartment (compartment_);
257
258
wavm->memory_ = WAVM::Runtime::remapToClonedCompartment (memory_, wavm->compartment_ );
258
259
wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress (wavm->memory_ );
You can’t perform that action at this time.
0 commit comments