JetBrains / sbt-idea-plugin

Develop IntelliJ plugins with Scala and SBT
Apache License 2.0
98 stars 28 forks source link

Update GC default param #71

Closed regadas closed 3 years ago

regadas commented 4 years ago

Hello,

The default GC param is only available for Java 8.

Anyone using Java 11 will need to override that value. Can you consider using -XX:+UseParallelGC or -XX:+UseG1GC. as default?

mutcianm commented 4 years ago

Hi! Sorry, I thought I've fixed this a long time ago. Thanks for pointing out.

mutcianm commented 4 years ago

Am I understanding correctly that there is a "-XX:+UseConcMarkSweepGC" option added when you run the debug IDEA via sbt's runIDE task or via the generated run configurations?

I'm asking because there's a special quirk that removes this option when running on JVM 9+ https://github.com/JetBrains/sbt-idea-plugin/blob/717e49a74767bd2b060237c2f7dd7685cbaf4fd0/ideaSupport/src/main/scala/org/jetbrains/sbtidea/Quirks.scala#L38