[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: RFR(S): JDK-8151991 jvmti diagnostics commands requires INCLUDE_SERVICES
From:       David Holmes <david.holmes () oracle ! com>
Date:       2016-03-18 4:42:14
Message-ID: 56EB8726.9060101 () oracle ! com
[Download RAW message or body]

On 17/03/2016 12:14 AM, Dmitry Samersoff wrote:
> Everybody,
>
> Please, review small fix.
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8151991/webrev.01/
>
> New diagnostic command (JVMTI.agent_load) should be guarded by
> #if INCLUDE_SERVICES and don't brake minimal VM build.

Initially I was confused as to why this was associated with 
INCLUDE_SERVICES as it seems unrelated to the all the other things 
guarded by INCLUDE_SERVICES. But now I see that the attachListener code 
is completely excluded by INCLUDE_SERVICES (excludeSrc.gmk) so it makes 
sense that the same guard is used in the diagnosticCommand sources (or 
else an independent guard introduced?).

However you would then also need the same guard in:

src/share/vm/prims/jvmtiExport.cpp

to allow INCLUDE_JVMTI to be true and INCLUDE_SERVICES to be false.

lso can you update this comment:

  64 #if INCLUDE_SERVICES // Heap dumping/inspection supported

to also refer to the JVM TI agent/attach support

Thanks,
David
-----


> -Dmitry
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic