File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
core/src/main/java/com/styra/opa/wasm Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11package com .styra .opa .wasm ;
22
33import com .dylibso .chicory .experimental .hostmodule .annotations .WasmModuleInterface ;
4+ import com .dylibso .chicory .runtime .ByteArrayMemory ;
45import com .dylibso .chicory .runtime .Instance ;
56import com .dylibso .chicory .runtime .Memory ;
67import com .dylibso .chicory .wasm .Parser ;
@@ -37,7 +38,10 @@ private OpaWasm(
3738 this .yamlMapper = yamlMapper ;
3839 this .memory = memory ;
3940 this .instance =
40- Instance .builder (Parser .parse (is )).withImportValues (toImportValues ()).build ();
41+ Instance .builder (Parser .parse (is ))
42+ .withImportValues (toImportValues ())
43+ .withMemoryFactory (ByteArrayMemory ::new )
44+ .build ();
4145 this .builtins = initializeBuiltins (defaultBuiltins , builtins );
4246 }
4347
Original file line number Diff line number Diff line change 5858 <maven-gpg-plugin .version>3.2.7</maven-gpg-plugin .version>
5959 <nexus-staging-maven-plugin .version>1.7.0</nexus-staging-maven-plugin .version>
6060 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
61- <chicory .version>1.0 .0</chicory .version>
61+ <chicory .version>1.1 .0</chicory .version>
6262 <junit .version>5.12.0</junit .version>
6363 <jackson .version>2.18.2</jackson .version>
6464 <spotless .version>2.44.3</spotless .version>
You can’t perform that action at this time.
0 commit comments