Commit 6b11446 1 parent c1972ec commit 6b11446 Copy full SHA for 6b11446
File tree 2 files changed +20
-3
lines changed
src/hotspot/share/gc/epsilon
test/hotspot/jtreg/gc/epsilon
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,25 @@ void EpsilonArguments::initialize() {
45
45
FLAG_SET_DEFAULT (ExitOnOutOfMemoryError, true );
46
46
}
47
47
48
+ // Warn users that non-resizable heap might be better for some configurations.
49
+ // We are not adjusting the heap size by ourselves, because it affects startup time.
50
+ if (InitialHeapSize != MaxHeapSize) {
51
+ log_warning (gc)(" Consider setting -Xms equal to -Xmx to avoid resizing hiccups" );
52
+ }
53
+
54
+ // Warn users that AlwaysPreTouch might be better for some configurations.
55
+ // We are not turning this on by ourselves, because it affects startup time.
56
+ if (FLAG_IS_DEFAULT (AlwaysPreTouch) && !AlwaysPreTouch) {
57
+ log_warning (gc)(" Consider enabling -XX:+AlwaysPreTouch to avoid memory commit hiccups" );
58
+ }
59
+
48
60
if (EpsilonMaxTLABSize < MinTLABSize) {
49
- warning (" EpsilonMaxTLABSize < MinTLABSize, adjusting it to " SIZE_FORMAT, MinTLABSize);
61
+ log_warning (gc) (" EpsilonMaxTLABSize < MinTLABSize, adjusting it to " SIZE_FORMAT, MinTLABSize);
50
62
EpsilonMaxTLABSize = MinTLABSize;
51
63
}
52
64
53
65
if (!EpsilonElasticTLAB && EpsilonElasticTLABDecay) {
54
- warning (" Disabling EpsilonElasticTLABDecay because EpsilonElasticTLAB is disabled" );
66
+ log_warning (gc) (" Disabling EpsilonElasticTLABDecay because EpsilonElasticTLAB is disabled" );
55
67
FLAG_SET_DEFAULT (EpsilonElasticTLABDecay, false );
56
68
}
57
69
Original file line number Diff line number Diff line change 26
26
* @key gc
27
27
* @requires vm.gc.Epsilon & !vm.graal.enabled
28
28
* @summary Basic sanity test for Epsilon
29
- * @run main/othervm -Xmx1g -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
29
+ * @run main/othervm -Xms128m -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
30
+ * @run main/othervm -Xms128m -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
31
+ * @run main/othervm -Xms128m -Xmx1g -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
32
+ * @run main/othervm -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
33
+ * @run main/othervm -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
34
+ * @run main/othervm -Xmx1g -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
30
35
*/
31
36
32
37
package gc .epsilon ;
You can’t perform that action at this time.
0 commit comments