RFR: 8218913: Rename --strip-debug jlink plugin

Severin Gehwolf sgehwolf at redhat.com
Thu Feb 14 09:04:54 UTC 2019


Hi Mandy,

On Wed, 2019-02-13 at 15:04 -0800, Mandy Chung wrote:
> Hi Severin,
> 
> Thanks for doing this.  I review the webrev.

Thanks for the review!

> You add a new DefaultStripDebugPlugin that will do the work.
> I have been assuming that this can be implemented as a jlink option
> that get translated into --strip-java-debug-symbols during
> the command line argument processing.

The reason I've opted for this approach was the intention to hook --
strip-debug up with not only --strip-java-debug-symbols, but also --
strip-native-debug-symbols as well once that gets in. The analogy to
the compress plugin applies here. Using this approach will make that
additional hooking up easier. Though, thinking about this some more --
strip-native-debug-info will be linux-only, so I'll have to ponder a
bit about how to make use of that platform-specific option without
breaking platforms which don't have it.

> I'm okay with --strip-java-debug-symbols.  The help message from
> javac -g option:
>    -g                           Generate all debugging info
> 
> The other choice is --strip-java-debug-info and 
> --strip-native-debug-info.  We can settle the naming in the other thread 
> to get others
> opinion.

As indicated in the other thread, I'd be happy to call it --strip-java-
debug-info and --strip-native-debug-info. I'll wait for the other
thread to settle before I'll update the webrev.

Thanks,
Severin

> Mandy
> 
> On 2/13/19 3:16 AM, Severin Gehwolf wrote:
> > Hi,
> > 
> > As discussed in the RFR thread for JDK-8214796 it was suggested to
> > rename the --strip-debug plugin so that --strip-debug could actually
> > perform java debug symbols stripping *and* native debug symbols
> > stripping at once. That's what this patch does. It renames --strip-
> > debug to --strip-java-debug-symbols and --strip-debug just calls --
> > strip-java-debug-symbols behind the scenes.
> > 
> > Note that --strip-debug-attributes as name would work for me too, but
> > given that we are about to introduce --strip-native-debug-symbols,
> > having the java strippping plugin with a similar name made sense to me.
> > 
> > bug: https://bugs.openjdk.java.net/browse/JDK-8218913
> > webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8218913/01/webrev/
> > 
> > Testing: jlink/jimage tests and jdk/submit (currently running).
> > 
> > Thoughts?
> > 
> > Thanks,
> > Severin
> > 



More information about the jigsaw-dev mailing list