where is the g writebuf flushed?

71 views
Skip to first unread message

arthurwil...@gmail.com

unread,
Jan 31, 2021, 3:22:06 PM1/31/21
to golang-nuts
in runtime/print.go gwrite, if the data is put in the gp.writebuf where does that writebuf get flushed?

Ian Lance Taylor

unread,
Feb 1, 2021, 12:23:54 AM2/1/21
to arthurwil...@gmail.com, golang-nuts
On Sun, Jan 31, 2021 at 12:22 PM arthurwil...@gmail.com
<arthurwil...@gmail.com> wrote:
>
> in runtime/print.go gwrite, if the data is put in the gp.writebuf where does that writebuf get flushed?

The gp.writebuf field is only used to implement runtime.Stack. It
isn't flushed anywhere, it's just returned to the caller of
runtime.Stack.

Ian
Reply all
Reply to author
Forward
0 new messages