patch

package
v1.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const GenericTrapForGo118And119 = `` /* 707-byte string literal not displayed */
View Source
const NoderFiles_1_17 = `` /* 556-byte string literal not displayed */
View Source
const NoderFiles_1_20 = `` /* 555-byte string literal not displayed */
View Source
const NoderFiles_1_21 = `` /* 557-byte string literal not displayed */
View Source
const NodesGen = `
func (n *node) SetPos(p Pos) {
	n.pos = p
}
`
View Source
const Nodes_Inspect_117 = `` /* 152-byte string literal not displayed */
View Source
const RuntimeExtraDef = `` /* 1209-byte string literal not displayed */
View Source
const RuntimeGetFuncName_Go117_120 = `
func __xgo_get_pc_name_impl(pc uintptr) string {
	return FuncForPC(pc).Name()
}
`
View Source
const RuntimeGetFuncName_Go120_Unused = `` /* 309-byte string literal not displayed */

FuncForPC(pc).Name() just works fine, there is no string split

View Source
const RuntimeGetFuncName_Go121 = `` /* 320-byte string literal not displayed */

start with go1.21, the runtime.FuncForPC(pc).Name() was wrapped in funcNameForPrint(...), we unwrap it NOTE: when upgrading to go1.23, should check the implementation again

View Source
const RuntimeProcGoroutineCreatedPatch = `for _, fn := range __xgo_on_gonewproc_callbacks {
	fn(uintptr(unsafe.Pointer(newg)))
}
return newg
`
View Source
const RuntimeProcGoroutineExitPatch = `for _, fn := range __xgo_on_goexits {
	fn()
}`

added after goroutine exit1

View Source
const RuntimeProcPatch = `` /* 131-byte string literal not displayed */
View Source
const TestingCallbackDeclarations = `func __xgo_link_get_test_starts() []interface{}{
	// link by compiler
	return nil
}
`
View Source
const TestingStart = `for _,__xgo_on_test_start:=range __xgo_link_get_test_starts(){
	(__xgo_on_test_start.(func(*T,func(*T))))(t,fn)
}
`

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL