@@ -6,10 +6,11 @@ import scala.reflect.io.Path
6
6
7
7
object DottyBuild extends Build {
8
8
9
- val travisMemLimit = List (" -Xmx1g" , " -Xss2m" )
10
-
11
9
val JENKINS_BUILD = " dotty.jenkins.build"
12
10
11
+ // This is what sbt uses (http://www.scala-sbt.org/0.13/docs/Manual-Installation.html)
12
+ val memoryOptions = List (" -Xms512M" , " -Xmx1536M" , " -Xss1M" )
13
+
13
14
val agentOptions = List (
14
15
// "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
15
16
// "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so"
@@ -113,7 +114,7 @@ object DottyBuild extends Build {
113
114
114
115
val travis_build = // propagate if this is a travis build
115
116
if (sys.props.isDefinedAt(JENKINS_BUILD ))
116
- List (s " -D $JENKINS_BUILD= ${sys.props(JENKINS_BUILD )}" ) ::: travisMemLimit
117
+ List (s " -D $JENKINS_BUILD= ${sys.props(JENKINS_BUILD )}" )
117
118
else
118
119
List ()
119
120
@@ -124,7 +125,7 @@ object DottyBuild extends Build {
124
125
else
125
126
List ()
126
127
127
- (" -DpartestParentID=" + pid) :: tuning ::: agentOptions ::: travis_build ::: fullpath
128
+ (" -DpartestParentID=" + pid) :: tuning ::: memoryOptions ::: agentOptions ::: travis_build ::: fullpath
128
129
}
129
130
) ++ addCommandAlias(" partest" , " ;test:package;package;test:runMain dotc.build;lockPartestFile;test:test;runPartestRunner" ) ++
130
131
addCommandAlias(" partest-only" , " ;test:package;package;test:runMain dotc.build;lockPartestFile;test:test-only dotc.tests;runPartestRunner" ) ++
@@ -169,7 +170,7 @@ object DottyBuild extends Build {
169
170
List (s " -D $JENKINS_BUILD= ${sys.props(JENKINS_BUILD )}" )
170
171
else
171
172
List ()
172
- val res = agentOptions ::: travis_build ::: fullpath
173
+ val res = memoryOptions ::: agentOptions ::: travis_build ::: fullpath
173
174
println(" Running with javaOptions: " + res)
174
175
res
175
176
}
0 commit comments