• Austin Clements's avatar
    runtime: clarify access to mheap_.busy · 77f64c50
    Austin Clements authored
    There are two accesses to mheap_.busy that are guarded by checks
    against len(mheap_.free). This works because both lists are (and must
    be) the same length, but it makes the code less clear. Change these to
    use len(mheap_.busy) so the access more clearly parallels the check.
    
    Fixes #18944.
    
    Change-Id: I9bacbd3663988df351ed4396ae9018bc71018311
    Reviewed-on: https://go-review.googlesource.com/36354
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    77f64c50
Name
Last commit
Last update
.github Loading commit data...
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...