@@ -10,7 +10,7 @@ fn context_init(c: &mut Criterion) {
1010 c. bench_function ( "context_init" , move |b| {
1111 b. iter ( || {
1212 let mut parent = ContextHandle :: new ( ) ;
13- ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] ) . unwrap ( ) ;
13+ ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] , std :: ptr :: null_mut ( ) ) . unwrap ( ) ;
1414 } )
1515 } ) ;
1616}
@@ -25,7 +25,7 @@ fn context_swap_return(c: &mut Criterion) {
2525 let mut stack = vec ! [ 0u64 ; 1024 ] . into_boxed_slice ( ) ;
2626 let mut parent = ContextHandle :: new ( ) ;
2727 let child =
28- ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] )
28+ ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] , std :: ptr :: null_mut ( ) )
2929 . unwrap ( ) ;
3030 ( stack, parent, child)
3131 } ,
@@ -48,7 +48,7 @@ fn context_init_swap_return(c: &mut Criterion) {
4848 |mut stack| {
4949 let mut parent = ContextHandle :: new ( ) ;
5050 let child =
51- ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] )
51+ ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & [ ] , std :: ptr :: null_mut ( ) )
5252 . unwrap ( ) ;
5353 unsafe { Context :: swap ( & mut parent, & child) } ;
5454 stack
@@ -337,7 +337,7 @@ fn context_init_swap_return_many_args(c: &mut Criterion) {
337337 |mut stack| {
338338 let mut parent = ContextHandle :: new ( ) ;
339339 let child =
340- ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & args)
340+ ContextHandle :: create_and_init ( & mut * stack, & mut parent, f as usize , & args, std :: ptr :: null_mut ( ) )
341341 . unwrap ( ) ;
342342 unsafe { Context :: swap ( & mut parent, & child) } ;
343343 stack
0 commit comments