Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for restoreGsignalStack (0.2 sec)

  1. src/runtime/signal_unix.go

    	gp.m.gsignal.stackguard0 = stsp + stackGuard
    	gp.m.gsignal.stackguard1 = stsp + stackGuard
    }
    
    // restoreGsignalStack restores the gsignal stack to the value it had
    // before entering the signal handler.
    //
    //go:nosplit
    //go:nowritebarrierrec
    func restoreGsignalStack(st *gsignalStack) {
    	gp := getg().m.gsignal
    	gp.stack = st.stack
    	gp.stackguard0 = st.stackguard0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/sigaltstack.go

    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = signalStack;
    	ss.ss_flags = 0;
    	ss.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&ss, &oss) < 0) {
    		perror("sigaltstack");
    		abort();
    	}
    }
    
    static void restoreSignalStack(void) {
    #if (defined(__x86_64__) || defined(__i386__)) && defined(__APPLE__)
    	// The Darwin C library enforces a minimum that the kernel does not.
    	// This is OK since we allocated this much space in mpreinit,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top