- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for signalstack (0.17 sec)
-
src/cmd/cgo/internal/test/sigaltstack.go
#define CSIGSTKSZ 0x4000 #else #define CSIGSTKSZ SIGSTKSZ #endif static stack_t oss; static char signalStack[CSIGSTKSZ]; static void changeSignalStack(void) { stack_t ss; 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/signal_unix.go
// Restore g if gp != nil { setg(gp) } return } setg(gp.m.gsignal) // If some non-Go code called sigaltstack, adjust. var gsignalStack gsignalStack setStack := adjustSignalStack(sig, gp.m, &gsignalStack) if setStack { gp.m.gsignal.stktopsp = getcallersp() } if gp.stackguard0 == stackFork { signalDuringFork(sig) } c.fixsigcode(sig)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/os_netbsd.go
// new signal stack here, to avoid having two Go threads using // the same signal stack. This breaks the case of a thread // created in C that calls sigaltstack and then calls a Go // function, because we will lose track of the C code's // sigaltstack, but it's the best we can do. signalstack(&gp.m.gsignal.stack) gp.m.newSigstack = true minitSignalMask() } // Called from dropm to undo the effect of an minit. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 10.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
exit(EXIT_FAILURE); } } // We should still be on the same signal stack. if (sigaltstack(NULL, &nss) < 0) { die("sigaltstack check"); } if ((nss.ss_flags & SS_DISABLE) != 0) { fprintf(stderr, "sigaltstack disabled on return from Go\n"); ok = 0; } else if (nss.ss_sp != ss.ss_sp) { fprintf(stderr, "sigaltstack changed on return from Go\n"); ok = 0; } return NULL; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/sigstack.go
if (base == MAP_FAILED) { perror("mmap failed"); abort(); } stack_t st = {}, ost = {}; st.ss_sp = (char*)base; st.ss_flags = 0; st.ss_size = CSIGSTKSZ; if (sigaltstack(&st, &ost) < 0) { perror("sigaltstack failed"); abort(); } // Call Go. SigStackCallback(); // Disable signal stack and protect it so we can detect reuse. if (ost.ss_flags & SS_DISABLE) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.1K bytes - Viewed (0) -
src/runtime/os_wasm.go
return } //go:nosplit func cputicks() int64 { // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. return nanotime() } // gsignalStack is unused on js. type gsignalStack struct{} const preemptMSupported = false func preemptM(mp *m) { // No threads, so nothing to do. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
src/runtime/os3_plan9.go
} func setProcessCPUProfiler(hz int32) { } func setThreadCPUProfiler(hz int32) { // TODO: Enable profiling interrupts. getg().m.profilehz = hz } // gsignalStack is unused on Plan 9.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 4K bytes - Viewed (0) -
src/runtime/cgo/gcc_netbsd.c
// in minit, but it's a simple change that keeps NetBSD // working like other OS's. At this point all signals are // blocked, so there is no race. memset(&ss, 0, sizeof ss); ss.ss_flags = SS_DISABLE; sigaltstack(&ss, nil); crosscall1(ts.fn, setg_gcc, ts.g); return nil;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:55:51 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/sys_openbsd2.go
asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(sigprocmask_trampoline)), unsafe.Pointer(&how)) KeepAlive(new) KeepAlive(old) } func sigprocmask_trampoline() //go:nosplit //go:cgo_unsafe_args func sigaltstack(new *stackt, old *stackt) { libcCall(unsafe.Pointer(abi.FuncPCABI0(sigaltstack_trampoline)), unsafe.Pointer(&new)) KeepAlive(new) KeepAlive(old) } func sigaltstack_trampoline()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.7K bytes - Viewed (0) -
src/runtime/os_openbsd_syscall2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.5K bytes - Viewed (0)