How "evil" is GetPrimitiveArrayCritical?

Florian Weimer fw at
Sun Dec 30 13:38:58 PST 2007

* Clemens Eisserer:

> How problematic is the use of GetPrimitiveArrayCritical, and what
> should be seen as a worst-case time for blocking? Does
> GetPrimitiveArrayCritical has any negative effects except delaying
> garbage collection for some time? Are there problems when many threads
> do a lot of GetPrimitiveArrayCritical/ReleasePrimitiveArrayCritical,
> even if they are short.
> Can it disturb the CMS GC?

It used to be pretty evil:


But this bug has supposedly been fixed.  How is not clear from the
public part.

More information about the hotspot-runtime-dev mailing list