From eec38c5853526f0cf8df0ccbd8e13f0a6c76a04a Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Sun, 9 Aug 2015 02:06:16 +0200 Subject: [PATCH] cmd/geth, core/vm: setup vm settings and defaulted JIT disabled --- cmd/geth/main.go | 1 + core/vm/settings.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 0e73822f37..895e55b44d 100644 --- a/cmd/geth/main.go +++ b/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) } diff --git a/core/vm/settings.go b/core/vm/settings.go index b94efd9ab1..0cd931b6ae 100644 --- a/core/vm/settings.go +++ b/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