From d52fd95c0446be340c0278ca191c177d4d216bd8 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 23 Oct 2023 21:06:29 +0200 Subject: [PATCH] Fix javac memory leak See https://github.com/apache/maven-mvnd/issues/897 --- .../java/org/codehaus/plexus/compiler/javac/JavacCompiler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java index 5aa4e0d7..2faf97e2 100644 --- a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java +++ b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java @@ -443,6 +443,8 @@ else if ( !suppressSource( config ) ) args.add( value ); } + args.add( "-XDuseUnsharedTable=true" ); + return args.toArray( new String[0] ); }