@@ -468,36 +468,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
468468 // Any non zero value works for the stdlib. This is just used for stack overflows anyway.
469469 this. write_scalar ( Scalar :: from_u32 ( 1 ) , dest) ?;
470470 }
471- | "InitializeCriticalSection"
472- | "EnterCriticalSection"
473- | "LeaveCriticalSection"
474- | "DeleteCriticalSection"
475- if this. frame_in_std ( ) =>
476- {
477- #[ allow( non_snake_case) ]
478- let [ _lpCriticalSection] =
479- this. check_shim ( abi, Abi :: System { unwind : false } , link_name, args) ?;
480- assert_eq ! (
481- this. get_total_thread_count( ) ,
482- 1 ,
483- "concurrency on Windows is not supported"
484- ) ;
485- // Nothing to do, not even a return value.
486- // (Windows locks are reentrant, and we have only 1 thread,
487- // so not doing any futher checks here is at least not incorrect.)
488- }
489- "TryEnterCriticalSection" if this. frame_in_std ( ) => {
490- #[ allow( non_snake_case) ]
491- let [ _lpCriticalSection] =
492- this. check_shim ( abi, Abi :: System { unwind : false } , link_name, args) ?;
493- assert_eq ! (
494- this. get_total_thread_count( ) ,
495- 1 ,
496- "concurrency on Windows is not supported"
497- ) ;
498- // There is only one thread, so this always succeeds and returns TRUE.
499- this. write_scalar ( Scalar :: from_i32 ( 1 ) , dest) ?;
500- }
501471 "GetCurrentProcessId" if this. frame_in_std ( ) => {
502472 let [ ] = this. check_shim ( abi, Abi :: System { unwind : false } , link_name, args) ?;
503473 let result = this. GetCurrentProcessId ( ) ?;
0 commit comments