Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for x_cgo_inittls (0.25 sec)

  1. src/runtime/cgo/gcc_linux_amd64.c

    	setg_gcc = setg;
    	pbounds = (uintptr*)malloc(2 * sizeof(uintptr));
    	if (pbounds == NULL) {
    		fatalf("malloc failed: %s", strerror(errno));
    	}
    	_cgo_set_stacklo(g, pbounds);
    	free(pbounds);
    
    	if (x_cgo_inittls) {
    		x_cgo_inittls(tlsg, tlsbase);
    	}
    }
    
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    	int err;
    
    	sigfillset(&ign);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/cgo/gcc_linux_arm64.c

    	setg_gcc = setg;
    	pbounds = (uintptr*)malloc(2 * sizeof(uintptr));
    	if (pbounds == NULL) {
    		fatalf("malloc failed: %s", strerror(errno));
    	}
    	_cgo_set_stacklo(g, pbounds);
    	free(pbounds);
    
    	if (x_cgo_inittls) {
    		x_cgo_inittls(tlsg, tlsbase);
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_linux_s390x.c

    // license that can be found in the LICENSE file.
    
    #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)
  5. 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)
  6. src/runtime/cgo/gcc_android.c

    		if (*(tlsbase+i) == (void*)magic1) {
    			*tlsg = (void*)(i*sizeof(void *));
    			pthread_setspecific(k, 0);
    			return;
    		}
    	}
    	fatalf("inittls: could not find pthread key");
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  7. src/runtime/tls_arm.s

    // this might as well result in another SIGSEGV.
    // Note: both functions will clobber R0 and R11 and
    // can be called from 5c ABI code.
    
    // On android, runtime.tls_g is a normal variable.
    // TLS offset is computed in x_cgo_inittls.
    #ifdef GOOS_android
    #define TLSG_IS_VARIABLE
    #endif
    
    // save_g saves the g register into pthread-provided
    // thread-local memory, so that we can call externally compiled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:38:07 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top