github.com/zxy12/golang151_with_comment@v0.0.0-20190507085033-721809559d3c/runtime/debug/stubs.s (about)

     1  // Copyright 2014 The Go Authors.  All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  
     7  #ifdef GOARCH_arm
     8  #define JMP B
     9  #endif
    10  #ifdef GOARCH_arm64
    11  #define JMP B
    12  #endif
    13  #ifdef GOARCH_ppc64
    14  #define JMP BR
    15  #endif
    16  #ifdef GOARCH_ppc64le
    17  #define JMP BR
    18  #endif
    19  
    20  TEXT ·setMaxStack(SB),NOSPLIT,$0-0
    21    JMP runtime·setMaxStack(SB)
    22  
    23  TEXT ·setGCPercent(SB),NOSPLIT,$0-0
    24    JMP runtime·setGCPercent(SB)
    25  
    26  TEXT ·setPanicOnFault(SB),NOSPLIT,$0-0
    27    JMP runtime·setPanicOnFault(SB)
    28  
    29  TEXT ·setMaxThreads(SB),NOSPLIT,$0-0
    30    JMP runtime·setMaxThreads(SB)