Commit ce020ffa authored by Gustavo Niemeyer's avatar Gustavo Niemeyer

runtime: remove use of ?:

Fixes #3061.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5656089
parent 6cdf0a1e
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment