diff options
| author | Michael Pratt <mpratt@google.com> | 2022-07-20 13:18:06 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2022-08-02 18:52:33 +0000 |
| commit | 29b9a328d268d53833d2cc063d1d8b4bf6852675 (patch) | |
| tree | b6158ac289e07aaaf6ce2585e7f46a2ab3289e9a /src/runtime/export_debuglog_test.go | |
| parent | c647264619bba886f1bff90e594d3cddc057f6ce (diff) | |
| download | go-29b9a328d268d53833d2cc063d1d8b4bf6852675.tar.xz | |
runtime: trivial replacements of g in remaining files
Rename g variables to gp for consistency.
Change-Id: I09ecdc7e8439637bc0e32f9c5f96f515e6436362
Reviewed-on: https://go-review.googlesource.com/c/go/+/418591
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/export_debuglog_test.go')
| -rw-r--r-- | src/runtime/export_debuglog_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/export_debuglog_test.go b/src/runtime/export_debuglog_test.go index 1a9074e646..c9dfdcb393 100644 --- a/src/runtime/export_debuglog_test.go +++ b/src/runtime/export_debuglog_test.go @@ -25,11 +25,11 @@ func (l *dlogger) S(x string) *dlogger { return l.s(x) } func (l *dlogger) PC(x uintptr) *dlogger { return l.pc(x) } func DumpDebugLog() string { - g := getg() - g.writebuf = make([]byte, 0, 1<<20) + gp := getg() + gp.writebuf = make([]byte, 0, 1<<20) printDebugLog() - buf := g.writebuf - g.writebuf = nil + buf := gp.writebuf + gp.writebuf = nil return string(buf) } |
