Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for osPreemptExtEnter (0.73 sec)

  1. src/runtime/preempt_nonwindows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !windows
    
    package runtime
    
    //go:nosplit
    func osPreemptExtEnter(mp *m) {}
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 290 bytes
    - Viewed (0)
  2. src/runtime/os_windows.go

    	stdcall1(_ResumeThread, thread)
    	stdcall1(_CloseHandle, thread)
    }
    
    // osPreemptExtEnter is called before entering external code that may
    // call ExitProcess.
    //
    // This must be nosplit because it may be called from a syscall with
    // untyped stack slots, so the stack must not be grown or scanned.
    //
    //go:nosplit
    func osPreemptExtEnter(mp *m) {
    	for !atomic.Cas(&mp.preemptExtLock, 0, 1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. src/runtime/cgocall.go

    	// code. We do this after entersyscall because this may block
    	// and cause an async preemption to fail, but at this point a
    	// sync preemption will succeed (though this is not a matter
    	// of correctness).
    	osPreemptExtEnter(mp)
    
    	mp.incgo = true
    	// We use ncgo as a check during execution tracing for whether there is
    	// any C on the call stack, which there will be after this point. If
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/runtime/race.go

    	// which can theoretically call back into Go.
    	// Tell the scheduler we entering external code.
    	entersyscall()
    
    	// We're entering external code that may call ExitProcess on
    	// Windows.
    	osPreemptExtEnter(getg().m)
    
    	racecall(&__tsan_fini, 0, 0, 0, 0)
    }
    
    //go:nosplit
    func raceproccreate() uintptr {
    	var ctx uintptr
    	racecall(&__tsan_proc_create, uintptr(unsafe.Pointer(&ctx)), 0, 0, 0)
    	return ctx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top