RFR: 8005204: Provide more detailed output on CodeCache usage

Vladimir Kozlov vladimir.kozlov at oracle.com
Thu Jan 3 10:25:01 PST 2013


Looks good.

One correction to request description:
with -XX:+PrintCodeCacheOnCompilation VM prints only one line per 
compilation:

CodeCache: size=32768Kb used=542Kb max_used=542Kb free=32226Kb 
max_free_chunk=32226Kb

Thanks,
Vladimir

On 1/3/13 9:57 AM, Vladimir Danushevsky wrote:
> Code review for JDK-8005204 "Provide more detailed output on CodeCache
> usage"
>
> We are adding more detailed output on CodeCache usage.
>
> Corresponding command line options are:
>       -XX:+PrintCodeCache - Will print the size of the codecache at VM
> exit. It will include the total size, used size, maximum used size,
> maximum free chunk, bounds, number of cached methods , etc.
>      -XX:+PrintCodeCacheOnCompilation - Same as PrintCodeCache, but does
> so each time a method is compiled. This is useful if the app does not do
> a normal JVM exit.
>
> Sample output:
>
> CodeCache: size=32768Kb used=542Kb max_used=542Kb free=32226Kb
> max_free_chunk=32226Kb
>    bounds [0xb414a000, 0xb41d2000, 0xb614a000]
>    total_blobs=131 nmethods=5 adapters=63
>    compilation: enabled
>
> Changeset: http://cr.openjdk.java.net/~vladidan/8005204/webrev.00/
>
> Sponsoring Alexander Harlap for that submission


More information about the hotspot-dev mailing list