[9] RFR(S): 8060215: per-method PrintIdealGraphLevel

dean long dean.long at oracle.com
Tue Oct 14 20:52:20 UTC 2014


Looks ok to me.

dl

On 10/14/2014 11:44 AM, Zoltán Majó wrote:
> Hi,
>
>
> please review the following patch.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8060215
>
> Problem: Currently, printing the Ideal Graph can be only enabled for 
> *all* methods compiled by the VM (by setting the PrintIdealGraphLevel 
> flag). The overhead of printing the graph can be too high when a VM is 
> debugged in a resource-constrained environment (e.g., limited network 
> bandwidth, limited disk space, or a slow CPU is available). To reduce 
> the overhed, it can be useful to produce the Ideal Graph only for a 
> subset of all methods compiled. By doing that the size of the output 
> file, the amount of data transferred on the network, and also the 
> overhead of printing the graph is reduced.
>
> Solution:
>
> - Use CompileCommand=option to set PrintIdealGraphLevel on a 
> per-method level.
> - PrintIdealGraphLevel sets the level of detail for printing all other 
> methods.
> - Introduce a new develop flag PrintIdealGraph to control/check if 
> printing the graph is enabled for any method. The old way of checking 
> if PrintIdealGraphLevel > 0 to see if printing is enabled is not good 
> enough, because PrintIdealGraphLevel flag can be 0 while 
> PrintIdealGraphLevel can be set for some method.
>
> Webrev: http://cr.openjdk.java.net/~zmajo/8060215/webrev.00/
>
> Testing: JPRT, manual testing.
>
> Thank you and best regards,
>
>
> Zoltan
>



More information about the hotspot-compiler-dev mailing list