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 @@ -522,7 +522,8 @@ class rlbox_wasm2c_sandbox
522
522
*/
523
523
inline bool impl_create_sandbox (
524
524
bool infallible = true ,
525
- const w2c_mem_capacity* custom_capacity = nullptr )
525
+ const w2c_mem_capacity* custom_capacity = nullptr ,
526
+ const char * instance_name = nullptr )
526
527
{
527
528
FALLIBLE_DYNAMIC_CHECK (
528
529
infallible, instance_initialized == false , " Sandbox already initialized" );
@@ -556,7 +557,7 @@ class rlbox_wasm2c_sandbox
556
557
INVOKE_DEFINE_RLBOX_WASM2C_IMPORTED_MODULE_ATTRIBS (RLBOX_WASM2C_MODULE_NAME);
557
558
558
559
*sandbox_memory_info = create_wasm2c_memory (
559
- *initial_memory_pages, custom_capacity, " RLBox_wasm2c " /* name */ );
560
+ *initial_memory_pages, custom_capacity, instance_name? instance_name : " RLBox_wasm2c " );
560
561
FALLIBLE_DYNAMIC_CHECK (infallible,
561
562
sandbox_memory_info->data != nullptr ,
562
563
" Could not allocate a heap for the wasm2c sandbox" );
You can’t perform that action at this time.
0 commit comments