Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,326 for tlsg (0.04 sec)

  1. src/runtime/cgo/gcc_android.c

    	get_ver = dlsym(handle, "android_get_device_api_level");
    	dlclose(handle);
    	if (get_ver != NULL) {
    		off = (void *)(TLS_SLOT_APP*sizeof(void *));
    		// tlsg is initialized to Q's free TLS slot. Verify it while we're here.
    		if (*tlsg != off) {
    			fatalf("tlsg offset wrong, got %ld want %ld\n", *tlsg, off);
    		}
    		return;
    	}
    
    	err = pthread_key_create(&k, nil);
    	if(err != 0) {
    		fatalf("pthread_key_create failed: %d", err);
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top