CMS GC in Java 1.4.2 has handling for marking stack overflow, in 1.4.2_14: the fix for 6409002 (part of 4615723).
However, it does not have a CMSMarkStackSizeMax setting. For extreme situations, attempts to expand the marking stack size could continue until the request is denied.
sync from 1.4.2-17-rev.
Backport of code relating to CMSMarkStackSizeMax.