Skip to content

Commit

Permalink
Merge pull request #1626 from obscuren/defaults-fix
Browse files Browse the repository at this point in the history
cmd/geth, core/vm: setup vm settings and defaulted JIT disabled
  • Loading branch information
obscuren committed Aug 9, 2015
2 parents c93f0b9 + eec38c5 commit 1cbd53a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions core/vm/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1cbd53a

Please sign in to comment.