Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for _cgo_set_stacklo (0.38 sec)

  1. src/runtime/cgo/gcc_freebsd.c

    #error Wrong ARM_TP_ADDRESS!
    #endif
    #endif
    
    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:40:00 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_libinit.c

    		struct context_arg arg;
    
    		arg.Context = 0;
    		(*pfn)(&arg);
    		return arg.Context;
    	}
    	return 0;
    }
    
    // _cgo_set_stacklo sets g->stacklo based on the stack size.
    // This is common code called from x_cgo_init, which is itself
    // called by rt0_go in the runtime package.
    void _cgo_set_stacklo(G *g, uintptr *pbounds)
    {
    	uintptr bounds[2];
    
    	// pbounds can be passed in by the caller; see gcc_linux_amd64.c.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/runtime/cgo/libcgo_unix.h

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
     * Initialize g->stacklo.
     */
    extern void _cgo_set_stacklo(G *, uintptr *);
    
    /*
     * Call pthread_create, retrying on EAGAIN.
     */
    extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*);
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 684 bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_linux_amd64.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);
    	}
    }
    
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    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_s390x.c

    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
    _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: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_ppc64x.c

    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
    _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: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_dragonfly_amd64.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:39:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_openbsd.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:56:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_freebsd_amd64.c

    	// See gcc_linux_amd64.c for details.
    	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);
    }
    
    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
    - 1.5K bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_darwin_amd64.c

    #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;
    	int err;
    
    	sigfillset(&ign);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top