• Austin Clements's avatar
    runtime: eliminate traceBuf write barriers · 03227bb5
    Austin Clements authored
    The tracing code is currently called from contexts such as sysmon and
    the scheduler where write barriers are not allowed. Unfortunately,
    while the common paths through the tracing code do not have write
    barriers, many of the less common paths dealing with buffer overflow
    and recycling do.
    
    This change replaces all *traceBufs with traceBufPtrs. In the style of
    guintptr, etc., the GC does not trace traceBufPtrs and write barriers
    do not apply when these pointers are written. Since traceBufs are
    allocated from non-GC'd memory and manually managed, this is always
    safe.
    
    Updates #10600.
    
    Change-Id: I52b992d36d1b634ebd855c8cde27947ec14f59ba
    Reviewed-on: https://go-review.googlesource.com/16812
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    03227bb5
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...