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