• Dmitriy Vyukov's avatar
    runtime: fix program termination when main goroutine calls Goexit · 55e0f36f
    Dmitriy Vyukov authored
    Do not consider idle finalizer/bgsweep/timer goroutines as doing something useful.
    We can't simply set isbackground for the whole lifetime of the goroutines,
    because when finalizer goroutine calls user function, we do want to consider it
    as doing something useful.
    This is borken due to timers for quite some time.
    With background sweep is become even more broken.
    Fixes #7784.
    
    LGTM=rsc
    R=rsc
    CC=golang-codereviews
    https://golang.org/cl/87960044
    55e0f36f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...