RFR(S) 8199924: Solaris: Correctly enqueue null arguments of attach operations

David Holmes david.holmes at oracle.com
Wed Mar 21 09:19:58 UTC 2018


Hi Christoph,

On 21/03/2018 6:10 PM, Langer, Christoph wrote:
> Hi,
> 
> may I please ask for reviews of the following small fix.
> 
> Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8199924.0/
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8199924
> 
> If one passes null arguments to the varargs of attach operations, they 
> get swallowed on Solaris and following arguments will shift to lower 
> positions.
> 
> Other platform implementations handle this correctly, for instance 
> linux: 
> http://hg.openjdk.java.net/jdk/jdk/file/f6ad4d73c834/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java#l178

Wouldn't it be simpler to just handle this at the Java level and 
substitute "" for null in the args array? We're only looking at a 
maximum of three possible entries.

Thanks,
David

> Thanks
> 
> Christoph
> 


More information about the serviceability-dev mailing list