1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00

explictly invoke GC

This commit is contained in:
v2ray 2016-05-04 23:41:09 +02:00
parent f5efd3f997
commit 03d6c648ab

View File

@ -5,6 +5,8 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"time"
"github.com/v2ray/v2ray-core"
_ "github.com/v2ray/v2ray-core/app/router/rules"
@ -92,6 +94,7 @@ func main() {
return
}
finish := make(chan bool)
<-finish
for range time.Tick(time.Minute) {
runtime.GC()
}
}