Code cleanup.

Last minute code clean up to fix some comments and rename `address_space_size`
to `memory_reservation_size` to better describe what the option is doing.
This commit is contained in:
Peter Huene
2021-02-26 18:41:33 -08:00
parent a481e11e63
commit 505437e353
6 changed files with 57 additions and 53 deletions

View File

@@ -378,7 +378,7 @@ fn async_with_pooling_stacks() {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 1,
memory_reservation_size: 1,
},
})
.expect("pooling allocator created");

View File

@@ -13,7 +13,7 @@ fn successful_instantiation() -> Result<()> {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 1,
memory_reservation_size: 1,
},
})?;
@@ -39,7 +39,7 @@ fn memory_limit() -> Result<()> {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 196608,
memory_reservation_size: 196608,
},
})?;
@@ -191,7 +191,7 @@ fn memory_zeroed() -> Result<()> {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 1,
memory_reservation_size: 1,
},
})?;
@@ -234,7 +234,7 @@ fn table_limit() -> Result<()> {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 1,
memory_reservation_size: 1,
},
})?;
@@ -349,7 +349,7 @@ fn table_zeroed() -> Result<()> {
},
instance_limits: InstanceLimits {
count: 1,
address_space_size: 1,
memory_reservation_size: 1,
},
})?;
@@ -391,7 +391,7 @@ fn instantiation_limit() -> Result<()> {
},
instance_limits: InstanceLimits {
count: INSTANCE_LIMIT,
address_space_size: 1,
memory_reservation_size: 1,
},
})?;