diff options
Diffstat (limited to 'src/runtime/debuglog_on.go')
| -rw-r--r-- | src/runtime/debuglog_on.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/debuglog_on.go b/src/runtime/debuglog_on.go index b81d66498c..99773129ab 100644 --- a/src/runtime/debuglog_on.go +++ b/src/runtime/debuglog_on.go @@ -8,6 +8,17 @@ package runtime const dlogEnabled = true +// dlogger is the underlying implementation of the dlogger interface, selected +// at build time. +// +// We use a type alias instead of struct embedding so that the dlogger type is +// identical to the type returned by method chaining on the methods of this type. +type dlogger = *dloggerImpl + +func dlog1() *dloggerImpl { + return dlogImpl() +} + // dlogPerM is the per-M debug log data. This is embedded in the m // struct. type dlogPerM struct { |
