From bef642e3fda5f79380a8ae6743262eb18f9b44af Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Mon, 11 Jun 2018 18:29:37 +0300 Subject: [PATCH 1/2] Lift limits little bit more. --- src/runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index 51c9661..719d607 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -19,9 +19,9 @@ use memory_units::Pages; use nan_preserving_float::{F32, F64}; /// Maximum number of entries in value stack. -pub const DEFAULT_VALUE_STACK_LIMIT: usize = 16384; +pub const DEFAULT_VALUE_STACK_LIMIT: usize = 4 * 1024 * 1024; /// Maximum number of entries in frame stack. -pub const DEFAULT_FRAME_STACK_LIMIT: usize = 16384; +pub const DEFAULT_FRAME_STACK_LIMIT: usize = 4 * 1024 * 1024; /// Function interpreter. pub struct Interpreter<'a, E: Externals + 'a> { From 803085d5abc203ae5998e5624d4dfa20d660a26c Mon Sep 17 00:00:00 2001 From: Sergey Pepyakin Date: Tue, 12 Jun 2018 14:03:04 +0300 Subject: [PATCH 2/2] Run tests in release mode. --- .travis.yml | 4 +++- test.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cf1344..45feba6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,9 @@ script: # Make sure fuzz targets are not broken. - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --tests --manifest-path=fuzz/Cargo.toml; fi - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo check --benches --manifest-path=benches/Cargo.toml; fi -- ./test.sh +# Run tests in the release mode since some of the tests from the spec +# perfrom reaaally bad in the debug mode. +- CARGOFLAGS=--release ./test.sh - ./doc.sh after_success: | # Build documentation and deploy it to github pages. diff --git a/test.sh b/test.sh index 3cef9ad..89da0a1 100755 --- a/test.sh +++ b/test.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -set -eux +set -ex cd $(dirname $0) -time cargo test +time cargo test $CARGOFLAGS cd -