mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-164301 try to use pooled allocator
GitOrigin-RevId: 96f967183c11ea2778a4687549bfd66131011cf4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
298caad8f0
commit
481d5c60b8
@@ -35,6 +35,7 @@ public final class Launcher {
|
||||
System.setProperty("io.netty.machineId", "28:f0:76:ff:fe:16:65:0e");
|
||||
System.setProperty("io.netty.processId", Integer.toString(new Random().nextInt(65535)));
|
||||
System.setProperty("io.netty.serviceThreadPrefix", "Netty");
|
||||
System.setProperty("io.netty.allocator.type", "pooled");
|
||||
//}
|
||||
|
||||
final Class<?> mainClass = jpsLoader.loadClass(mainClassName);
|
||||
|
||||
@@ -52,6 +52,7 @@ fun getIdeSystemProperties(runDir: Path): VmProperties {
|
||||
"jna.noclasspath" to "true",
|
||||
"jb.vmOptionsFile" to "${Files.newDirectoryStream(runDir.resolve("bin"), "*.vmoptions").use { it.single() }}",
|
||||
"compose.swing.render.on.graphics" to "true",
|
||||
"io.netty.allocator.type" to "pooled",
|
||||
)
|
||||
)
|
||||
return VmProperties(result)
|
||||
|
||||
@@ -339,6 +339,7 @@ class BuildContextImpl internal constructor(
|
||||
// require bundled JNA dispatcher lib
|
||||
jvmArgs.add("-Djna.nosys=true")
|
||||
jvmArgs.add("-Djna.noclasspath=true")
|
||||
jvmArgs.add("-Dio.netty.allocator.type=pooled")
|
||||
|
||||
if (useModularLoader || generateRuntimeModuleRepository) {
|
||||
jvmArgs.add("-Dintellij.platform.runtime.repository.path=${macroName}/${MODULE_DESCRIPTORS_JAR_PATH}".let { if (isScript) '"' + it + '"' else it })
|
||||
|
||||
@@ -50,6 +50,7 @@ class BuiltInServer private constructor(
|
||||
if (java.lang.Boolean.parseBoolean(System.getProperty("io.netty.random.id", "true"))) {
|
||||
System.setProperty("io.netty.machineId", "28:f0:76:ff:fe:16:65:0e")
|
||||
System.setProperty("io.netty.processId", Random.nextInt(65535).toString())
|
||||
System.setProperty("io.netty.allocator.type", "pooled")
|
||||
}
|
||||
|
||||
System.setProperty("io.netty.serviceThreadPrefix", "Netty ")
|
||||
|
||||
Reference in New Issue
Block a user