RFR (XS) 8241462: StripNativeDebugSymbols jlink plugin allocates huge arrays
Alan Bateman
Alan.Bateman at oracle.com
Mon Mar 23 20:35:52 UTC 2020
On 23/03/2020 19:22, Aleksey Shipilev wrote:
> :
>
> +import java.io.InputStream;
> import java.io.IOException;
> import java.lang.ProcessBuilder.Redirect;
> @@ -314,5 +315,8 @@
> String relativeDbgFileName = relativeFileName + "." + debugExt;
>
> - Files.write(resourceFileBinary, resource.contentBytes());
> + try (InputStream in = resource.content()) {
> + Files.copy(in, resourceFileBinary);
> + }
> +
> Path resourceFileDebugSymbols;
> if (includeDebug) {
>
This looks okay.
-Alan.
More information about the jigsaw-dev
mailing list