Increase stack size during testing
This is in order to accommodate GitHubStateTest#stSystemOperationsTest, which tests Ethereum's rules around maximum call stack depth, and thus requires increasing Java's own defaults. If this option is not set, this test results in a StackOverflowException. Note that the setting is applied to Gradle's `test` closure as opposed to a the global `JAVA_OPTS` environment variable, because Gradle spawns a new process for executing tests.
This commit is contained in:
parent
11e8a55304
commit
84b1cef682
|
@ -37,6 +37,6 @@ notifications:
|
||||||
# http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
|
# http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html#sec:gradle_properties_and_system_properties
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- JAVA_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xss32M"
|
- JAVA_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"
|
||||||
- secure: "BSdfBQsJi5VFcIF7Z50ddfjex60OZpd8OM7AxN+h93wxzBx/GD2bsWA9elwvrLFImByw5RIqE9xRvL4CioKZLgFiJCSFuPkf6I+6R6PsUhqklPvAJSXHlQXOM6bJD23rZewyfudh5JtqADVavY7vlXnmYXFeWKh8XdPYtRPlJV0="
|
- secure: "BSdfBQsJi5VFcIF7Z50ddfjex60OZpd8OM7AxN+h93wxzBx/GD2bsWA9elwvrLFImByw5RIqE9xRvL4CioKZLgFiJCSFuPkf6I+6R6PsUhqklPvAJSXHlQXOM6bJD23rZewyfudh5JtqADVavY7vlXnmYXFeWKh8XdPYtRPlJV0="
|
||||||
- secure: "iZcZikUHrdaxsc5at1KT0M/6D4OHdU2WTd/aFIBKERXteGw+okq+s+VWghnELEq3YsKfYRJrkslcA6Mpcxq7KrUMsSSX1kZ1ifsk2151sU3+fJpIYQ9pCeWboLWSF//A7IdEe+zHpRVFuHVGU05OAalNCmJ52TEe3/M0YkY5+e8="
|
- secure: "iZcZikUHrdaxsc5at1KT0M/6D4OHdU2WTd/aFIBKERXteGw+okq+s+VWghnELEq3YsKfYRJrkslcA6Mpcxq7KrUMsSSX1kZ1ifsk2151sU3+fJpIYQ9pCeWboLWSF//A7IdEe+zHpRVFuHVGU05OAalNCmJ52TEe3/M0YkY5+e8="
|
||||||
|
|
|
@ -36,6 +36,10 @@ antlr4 {
|
||||||
|
|
||||||
compileJava.dependsOn antlr4
|
compileJava.dependsOn antlr4
|
||||||
|
|
||||||
|
test {
|
||||||
|
jvmArgs '-Xss16m'
|
||||||
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
compile.extendsFrom antlr4
|
compile.extendsFrom antlr4
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue