Cost of single-threaded nmethod hotness updates at each safepoint (in JDK 8)
ysr1729 at gmail.com
Fri Jul 31 22:04:28 UTC 2015
Hi Bernd --
It doesn't seem coupled to GC; here's an example snapshot:
BTW, to a question of Vitaly's on this thread earlier, this code executes
irrespective of whether you are running tiered or not (the above is from
tiered explictly off -- earlier ones were with tiered on --, yet note the
excessive time in the stack walk as part of this code in JDK 8):
[mark nmethods, 0.0171828 secs]
On a similar note (and to Vladimir's earlier note of turning off code cache
flushing) and with the understanding that there were lots of changes
related to tiered compilation and code cache flushing between 7 ad 8,
turning on Tiered in 7 leads to the occasional (rare) long safepoint for
the stack walks, but else not.
And finally the same issue must exist in 9 as well, albeit based on code
inspection, not running with JDK 9 yet.
Have a good weekend!
On Fri, Jul 31, 2015 at 2:44 PM, Bernd Eckenfels <ecki at zusammenkunft.net>
> Am Fri, 31 Jul 2015 12:07:18 -0700
> schrieb Srinivas Ramakrishna <ysr1729 at gmail.com>:
> > sun.ci.codeCacheSweepsTotalNum=58
> > Notice that the code cache usage is less that 35 MB, for the 240 MB
> > capacity, yet it seems we have had 58 sweeps already
> I would also be interested in what causes this. Is this caused by
> System.gc maybe? (we do see sweeps and decreasing code cache usage on
> systems where no pressure should exist).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-gc-dev