1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:30:22 -07:00

runtime: remove use of ?:

Fixes #3061.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5656089
This commit is contained in:
Gustavo Niemeyer 2012-02-17 17:13:16 -02:00
parent 6cdf0a1eab
commit ce020ffacd

View File

@ -346,7 +346,10 @@ runtime·MHeap_Scavenger(void)
// we hand it back to the operating system.
limit = 5*60*1e9;
// Make wake-up period small enough for the sampling to be correct.
tick = forcegc < limit ? forcegc/2 : limit/2;
if(forcegc < limit)
tick = forcegc/2;
else
tick = limit/2;
trace = false;
env = runtime·getenv("GOGCTRACE");