Fix OutOfMemryError
This commit is contained in:
parent
a9388f9f8f
commit
e6193c9a1d
@ -13,13 +13,13 @@ import static org.junit.Assert.assertNotNull;
|
|||||||
public class StressTest {
|
public class StressTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* require at least 1GB of free ram
|
* require at least 3GB of free ram
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void stressTest1() {
|
public void stressTest1() {
|
||||||
long millis = System.currentTimeMillis();
|
long millis = System.currentTimeMillis();
|
||||||
GLCanvas joglFrame = new GLCanvas();
|
GLCanvas joglFrame = new GLCanvas();
|
||||||
Parser parser = new Parser("Y", Arrays.asList("Y=X+[[Y]-Y]-X[-XY]+Y", "X=XX"), 12);
|
Parser parser = new Parser("Y", Arrays.asList("Y=X+[[Y]-Y]-X[-XY]+Y", "X=XX"), 11);
|
||||||
List<Pair<String, String>> lSystemRules = parser.parseRules();
|
List<Pair<String, String>> lSystemRules = parser.parseRules();
|
||||||
joglFrame.setLSystem(parser.getAxiom(), lSystemRules, parser.getNbIterations());
|
joglFrame.setLSystem(parser.getAxiom(), lSystemRules, parser.getNbIterations());
|
||||||
System.out.println(joglFrame.getLSystem());
|
System.out.println(joglFrame.getLSystem());
|
||||||
|
Loading…
Reference in New Issue
Block a user