RFR [16] 8248170 Excessive include of compiledMethod, codeCache, javaClasses and systemDictionary

David Holmes david.holmes at oracle.com
Wed Jun 24 04:08:33 UTC 2020


Hi Ioi,

On 24/06/2020 6:10 am, Ioi Lam wrote:
> https://bugs.openjdk.java.net/browse/JDK-8248170
> http://cr.openjdk.java.net/~iklam/jdk16/8248170-fix-includes-compiledMethod-etc.v01/ 
> 
> 
> {compiledMethod, codeCache, javaClasses, systemDictionary}.hpp are 
> unnecessarily included in some popular headers. This introduces 
> unnecessary dependencies and slows down compile time.

Based on your non-PCH local builds?

I have no issue with removing unnecessary includes but I see far more 
added includes in your changes than I see removals, so I'm a little 
confused by that. I also have to wonder how on earth you concluded that 
these particular includes were the cause of your problem ??

The change seems harmless so I don't object.

Thanks,
David

> slowdebug:
> total number of files compiled: 264606 -> 260588 = -1.5%
> total number of lines compiled: 76073364 -> 74477347 = -2.1%
> size of libjvm.so (internal symbols): 234180296 bytes -> 233129904 bytes 
> = -0.5%
> 
> (I got the statistics by parsing the *.d files in the build directory).
> 
> Thanks
> - Ioi


More information about the hotspot-dev mailing list