summaryrefslogtreecommitdiff
path: root/chapter25/src/main/java/com/seaofnodes/simple/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'chapter25/src/main/java/com/seaofnodes/simple/codegen')
-rw-r--r--chapter25/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter25/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java b/chapter25/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java
index ca2cc955..64892f3f 100644
--- a/chapter25/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java
+++ b/chapter25/src/main/java/com/seaofnodes/simple/codegen/CodeGen.java
@@ -49,7 +49,7 @@ public class CodeGen {
// -Dsimple.assert.expensive=0 disables these checks
// -Dsimple.assert.expensive=1 checks every step
// -Dsimple.assert.expensive=N checks once every 1<<N steps
- private static final int EXPENSIVE_ASSERT_LOG = Integer.getInteger("simple.assert.expensive",8);
+ private static final int EXPENSIVE_ASSERT_LOG = Integer.getInteger("simple.assert.expensive",1);
public static boolean expensiveAssert() { return EXPENSIVE_ASSERT_LOG > 0; }
public static boolean expensiveAssert( int trip ) {
if( EXPENSIVE_ASSERT_LOG <= 0 ) return false;