Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.16 KB

devnotes.md

File metadata and controls

15 lines (13 loc) · 1.16 KB

To find out what functions get inline in a package, from the package run go build -gcflags=-m=2 . 2>&1

e.g. check triggerReturn

$ cd runtime
$ go build -gcflags=-m=2 . 2>&1 | grep triggerReturn
./debughooks.go:61:6: can inline (*DebugHooks).triggerReturn with cost 73 as: method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) }
./gocont.go:94:21: inlining call to (*DebugHooks).triggerReturn method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) }
./luacont.go:352:26: inlining call to (*DebugHooks).triggerReturn method(*DebugHooks) func(*Thread, Cont) *Error { if h.DebugHookFlags & HookFlagReturn == 0 { return nil }; return h.callHook(t, c, returnHookString) }
./debughooks.go:61:47:     from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1
./debughooks.go:61:36:     from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1
<autogenerated>:1:     from .this.DebugHooks.triggerReturn(t, c) (call parameter) at <autogenerated>:1