Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for callStackSwitchCallbackFromThread (0.22 sec)

  1. src/runtime/testdata/testprogcgo/stackswitch.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix && !android && !openbsd
    
    package main
    
    /*
    void callStackSwitchCallbackFromThread(void);
    */
    import "C"
    
    import (
    	"fmt"
    	"runtime/debug"
    )
    
    func init() {
    	register("StackSwitchCallback", StackSwitchCallback)
    }
    
    //export stackSwitchCallback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/stackswitch.c

    //
    // Note that bionic does not provide getcontext either, but that is skipped via
    // the android build tag.
    #if defined(__linux__) && !defined(__GLIBC__)
    #define MUSL 1
    #endif
    #if defined(MUSL)
    void callStackSwitchCallbackFromThread(void) {
    	printf("SKIP\n");
    	exit(0);
    }
    #else
    
    // Use a stack size larger than the 32kb estimate in
    // runtime.callbackUpdateSystemStack. This ensures that a second stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top