瀏覽代碼

cmd/geth, core/vm: setup vm settings and defaulted JIT disabled

Jeffrey Wilcke 10 年之前
父節點
當前提交
eec38c5853
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1 0
      cmd/geth/main.go
  2. 3 3
      core/vm/settings.go

+ 1 - 0
cmd/geth/main.go

@@ -336,6 +336,7 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
 	}
 	app.Before = func(ctx *cli.Context) error {
 		utils.SetupLogger(ctx)
+		utils.SetupVM(ctx)
 		if ctx.GlobalBool(utils.PProfEanbledFlag.Name) {
 			utils.StartPProf(ctx)
 		}

+ 3 - 3
core/vm/settings.go

@@ -17,9 +17,9 @@
 package vm
 
 var (
-	DisableJit  bool // Disable the JIT VM
-	ForceJit    bool // Force the JIT, skip byte VM
-	MaxProgSize int  // Max cache size for JIT Programs
+	DisableJit  bool = true // Disable the JIT VM
+	ForceJit    bool        // Force the JIT, skip byte VM
+	MaxProgSize int         // Max cache size for JIT Programs
 )
 
 const defaultJitMaxCache int = 64