mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-15 06:50:12 +08:00
This commit is contained in:
parent
2e7e2d261c
commit
4c2d1063ec
@ -136,7 +136,8 @@ public class DefaultLauncher extends Launcher {
|
|||||||
if (options.getMaxMemory() != null && options.getMaxMemory() > 0)
|
if (options.getMaxMemory() != null && options.getMaxMemory() > 0)
|
||||||
res.addDefault("-Xmx", options.getMaxMemory() + "m");
|
res.addDefault("-Xmx", options.getMaxMemory() + "m");
|
||||||
|
|
||||||
if (options.getMinMemory() != null && options.getMinMemory() > 0)
|
if (options.getMinMemory() != null && options.getMinMemory() > 0
|
||||||
|
&& (options.getMaxMemory() == null || options.getMinMemory() <= options.getMaxMemory()))
|
||||||
res.addDefault("-Xms", options.getMinMemory() + "m");
|
res.addDefault("-Xms", options.getMinMemory() + "m");
|
||||||
|
|
||||||
if (options.getMetaspace() != null && options.getMetaspace() > 0)
|
if (options.getMetaspace() != null && options.getMetaspace() > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user