Skip to content

Commit 05ff3aa

Browse files
author
Vincent Potucek
committed
Pull spring-projects#34809: fix xmx args
1 parent f64caf4 commit 05ff3aa

File tree

5 files changed

+5
-32
lines changed

5 files changed

+5
-32
lines changed

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version=7.0.0-SNAPSHOT
33
org.gradle.caching=true
44
org.gradle.jvmargs=-Xmx4g
55
org.gradle.parallel=true
6+
67
kotlinVersion=2.1.20
78

89
kotlin.jvm.target.validation.mode=ignore

import-into-eclipse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _When instructed to execute `./gradlew` from the command line, be sure to execut
4848
1. While JUnit tests pass from the command line with Gradle, some may fail when run from
4949
the IDE.
5050
- Resolving this is a work in progress.
51-
- If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m`
51+
- If attempting to run all JUnit tests from within the IDE, you may need to set the following VM options to avoid out of memory errors: `-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g`
5252

5353
## Tips
5454

import-into-idea.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details.
1919
3. While JUnit tests pass from the command line with Gradle, some may fail when run from
2020
IntelliJ IDEA. Resolving this is a work in progress. If attempting to run all JUnit tests from within
2121
IntelliJ IDEA, you will likely need to set the following VM options to avoid out of memory errors:
22-
-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
22+
-XX:MaxPermSize=2g -Xmx2g -XX:MaxHeapSize=2g
2323
4. If you invoke "Rebuild Project" in the IDE, you'll have to generate some test
2424
resources of the `spring-oxm` module again (`./gradlew :spring-oxm:compileTestJava`)
2525

init.gradle

-30
This file was deleted.

integration-tests/src/test/java/org/springframework/aot/test/SampleReflection.java

+2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ public class SampleReflection {
2626

2727
@SuppressWarnings("unused")
2828
public void sample() {
29+
String value = "Sample";
2930
Method[] methods = String.class.getMethods();
3031
}
3132

3233
@SuppressWarnings("unused")
3334
public void multipleCalls() {
35+
String value = "Sample";
3436
Method[] methods = String.class.getMethods();
3537
methods = Integer.class.getMethods();
3638
}

0 commit comments

Comments
 (0)