- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,205 for tlsg (0.04 sec)
-
src/runtime/cgo/gcc_windows_amd64.c
#include <errno.h> #include "libcgo.h" #include "libcgo_windows.h" static void threadentry(void*); static void (*setg_gcc)(void*); static DWORD *tls_g; void x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase) { setg_gcc = setg; tls_g = (DWORD *)tlsg; } void _cgo_sys_thread_start(ThreadStart *ts) { _cgo_beginthread(threadentry, ts); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 12 03:56:28 UTC 2023 - 1K bytes - Viewed (0) -
src/runtime/cgo/gcc_windows_386.c
/* * Set specific keys in thread local storage. */ asm volatile ( "movl %0, %%fs:0(%1)\n" // MOVL tls0, 0(tls_g)(FS) "movl %%fs:0(%1), %%eax\n" // MOVL 0(tls_g)(FS), tmp "movl %2, 0(%%eax)\n" // MOVL g, 0(AX) :: "r"(ts.tls), "r"(*tls_g), "r"(ts.g) : "%eax" ); crosscall1(ts.fn, setg_gcc, ts.g);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 12 03:56:58 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_amd64.c
static void* threadentry(void*); static void (*setg_gcc)(void*); // This will be set in gcc_android.c for android-specific customization. void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common)); void x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase) { uintptr *pbounds; /* The memory sanitizer distributed with versions of clang before 3.8 has a bug: if you call mmap before malloc, mmap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 2.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux.c
#include "libcgo_unix.h" static void *threadentry(void*); void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common)); static void (*setg_gcc)(void*); void x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase) { setg_gcc = setg; _cgo_set_stacklo(g, NULL); if (x_cgo_inittls) { x_cgo_inittls(tlsg, tlsbase); } } void _cgo_sys_thread_start(ThreadStart *ts) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:55:36 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/sys_darwin_arm64.go
// // It finds the first available slot using pthread_key_create and uses // it as the offset value for runtime.tlsg. // // This runs at startup on g0 stack, but before g is set, so it must // not split stack (transitively). g is expected to be nil, so things // (e.g. asmcgocall) will skip saving or reading g. // //go:nosplit func tlsinit(tlsg *uintptr, tlsbase *[_PTHREAD_KEYS_MAX]uintptr) { var k pthreadkey err := g0_pthread_key_create(&k, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 30 03:11:18 UTC 2021 - 1.7K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_arm64.c
#include <pthread.h> #include <errno.h> #include <string.h> #include <signal.h> #include <stdlib.h> #include "libcgo.h" #include "libcgo_unix.h" static void *threadentry(void*); void (*x_cgo_inittls)(void **tlsg, void **tlsbase) __attribute__((common)); static void (*setg_gcc)(void*); void _cgo_sys_thread_start(ThreadStart *ts) { pthread_attr_t attr; sigset_t ign, oset; pthread_t p; size_t size; int err;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 2.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_darwin_amd64.c
#include <pthread.h> #include <signal.h> #include "libcgo.h" #include "libcgo_unix.h" static void* threadentry(void*); static void (*setg_gcc)(void*); void x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase) { setg_gcc = setg; _cgo_set_stacklo(g, NULL); } void _cgo_sys_thread_start(ThreadStart *ts) { pthread_attr_t attr; sigset_t ign, oset; pthread_t p; size_t size;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 12 03:56:28 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_s390x.c
#include <pthread.h> #include <string.h> #include <signal.h> #include "libcgo.h" #include "libcgo_unix.h" static void *threadentry(void*); void (*x_cgo_inittls)(void **tlsg, void **tlsbase); static void (*setg_gcc)(void*); void x_cgo_init(G *g, void (*setg)(void*), void **tlsbase) { setg_gcc = setg; _cgo_set_stacklo(g, NULL); } void
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_ppc64x.c
//go:build ppc64 || ppc64le #include <pthread.h> #include <string.h> #include <signal.h> #include "libcgo.h" #include "libcgo_unix.h" static void *threadentry(void*); void (*x_cgo_inittls)(void **tlsg, void **tlsbase); static void (*setg_gcc)(void*); void x_cgo_init(G *g, void (*setg)(void*), void **tlsbase) { setg_gcc = setg; _cgo_set_stacklo(g, NULL); } void
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/lib.go
} // The Android Q linker started to complain about underalignment of the our TLS // section. We don't actually use the section on android, so don't // generate it. if buildcfg.GOOS != "android" { tlsg := ctxt.loader.LookupOrCreateSym("runtime.tlsg", 0) sb := ctxt.loader.MakeSymbolUpdater(tlsg) // runtime.tlsg is used for external linking on platforms that do not define
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0)