File: 02-increase-default-conversion-timeout.patch

package info (click to toggle)
antlr3 3.5.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,576 kB
  • sloc: java: 92,592; xml: 942; makefile: 37; sh: 19
file content (14 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Increase the default conversion timeout to avoid build failures when complex grammars are processed on slow architectures.
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/tool/src/main/java/org/antlr/analysis/DFA.java
+++ b/tool/src/main/java/org/antlr/analysis/DFA.java
@@ -57,7 +57,7 @@
 	 */
 
 	/** Set to 0 to not terminate early (time in ms) */
-	public static int MAX_TIME_PER_DFA_CREATION = 1*1000;
+	public static int MAX_TIME_PER_DFA_CREATION = 30*1000;
 
 	/** How many edges can each DFA state have before a "special" state
 	 *  is created that uses IF expressions instead of a table?