throwing static exceptions sometimes VERY slow!

Wieland, Jacob Jacob.Wieland at
Fri Feb 24 09:17:22 UTC 2017


I am observing a very strange behavior.

In our generated code (due to various reasons I won't go into here unless I have to, but trust me, they are legit), we throw static exceptions for control flow purposes, This seems to work fine and without performance loss most of the time. However, we are observing now that every few seconds, a throw sometimes takes up between 1,5 and 2.5 seconds! (in contrast to the normal almost non-measurable time).

It does not seem to be GC related, the only idea that I have is the jitter.

So, my question is. Is this a known (and for some strange reason maybe even accepted) behavior or is this a bug that I should file with Oracle (or you guys).



Dr. Jacob Wieland

Senior Software Engineer

main    +49.30.7261919.34

mobile +49.173.6446443

jacob.wieland at<mailto:jacob.wieland at>

Follow us on:

Spirent Communications


Michaelkirchstraße 17/18

10179 Berlin, Germany

+++++  N E W S F L A S H  +++++

Spirent Communications and Testing Technologies join forces to become your test automation power-house. Read more at

Spirent Communications e-mail confidentiality.
This e-mail contains confidential and / or privileged information belonging to Spirent Communications plc, its affiliates and / or subsidiaries. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution and / or the taking of any action based upon reliance on the contents of this transmission is strictly forbidden. If you have received this message in error please notify the sender by return e-mail and delete it from your system.

Spirent Communications plc
Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom.
Tel No. +44 (0) 1293 767676
Fax No. +44 (0) 1293 767677

Registered in England Number 470893
Registered at Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom.

Or if within the US,

Spirent Communications,
27349 Agoura Road, Calabasas, CA, 91301, USA.
Tel No. 1-818-676- 2300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list