@@ -9,7 +9,7 @@ fn context_init(c: &mut Criterion) {
99
1010 c. bench_function ( "context_init" , move |b| {
1111 b. iter ( || {
12- ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] ) . unwrap ( ) ;
12+ ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] , std :: ptr :: null_mut ( ) ) . unwrap ( ) ;
1313 } )
1414 } ) ;
1515}
@@ -22,7 +22,7 @@ fn context_swap_return(c: &mut Criterion) {
2222 b. iter_batched (
2323 || {
2424 let mut stack = vec ! [ 0u64 ; 1024 ] . into_boxed_slice ( ) ;
25- let child = ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] ) . unwrap ( ) ;
25+ let child = ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] , std :: ptr :: null_mut ( ) ) . unwrap ( ) ;
2626 ( stack, child)
2727 } ,
2828 |( stack, mut child) | unsafe {
@@ -45,7 +45,7 @@ fn context_init_swap_return(c: &mut Criterion) {
4545 |mut stack| {
4646 let mut parent = ContextHandle :: new ( ) ;
4747 let mut child =
48- ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] ) . unwrap ( ) ;
48+ ContextHandle :: create_and_init ( & mut * stack, f as usize , & [ ] , std :: ptr :: null_mut ( ) ) . unwrap ( ) ;
4949 unsafe { Context :: swap ( & mut parent, & mut child) } ;
5050 stack
5151 } ,
@@ -333,7 +333,7 @@ fn context_init_swap_return_many_args(c: &mut Criterion) {
333333 |mut stack| {
334334 let mut parent = ContextHandle :: new ( ) ;
335335 let mut child =
336- ContextHandle :: create_and_init ( & mut * stack, f as usize , & args) . unwrap ( ) ;
336+ ContextHandle :: create_and_init ( & mut * stack, f as usize , & args, std :: ptr :: null_mut ( ) ) . unwrap ( ) ;
337337 unsafe { Context :: swap ( & mut parent, & mut child) } ;
338338 stack
339339 } ,
0 commit comments