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:
parent
6cdf0a1eab
commit
ce020ffacd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user