Support specification of stack with clone system call and CLONE_STACK flag

This commit is contained in:
Jeremy Soller
2019-03-31 14:35:45 -06:00
parent 9ccaed7103
commit e5cf6efa64
8 changed files with 133 additions and 96 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ pub fn resource() -> Result<Vec<u8>> {
});
}
if let Some(ref stack) = context.stack {
memory += stack.size();
stack.with(|stack| {
memory += stack.size();
});
}
if let Some(ref sigstack) = context.sigstack {
memory += sigstack.size();