Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for _cgo_set_stacklo (0.4 sec)

  1. src/runtime/cgo/gcc_linux.c

    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)
    {
    	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: Tue Aug 15 03:55:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_netbsd.c

    #include <string.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*))
    {
    	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;
    	int err;
    
    	sigfillset(&ign);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_linux_arm64.c

    	   malloc, so we actually use the memory we allocate.  */
    
    	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_darwin_arm64.c

    	}
    }
    
    #endif // TARGET_OS_IPHONE
    
    void
    x_cgo_init(G *g, void (*setg)(void*))
    {
    	//fprintf(stderr, "x_cgo_init = %p\n", &x_cgo_init); // aid debugging in presence of ASLR
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    
    #if TARGET_OS_IPHONE
    	darwin_arm_init_mach_exception_handler();
    	darwin_arm_init_thread_exception_port();
    	init_working_dir();
    #endif
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top