Hi,
I am not sure if this is the right place to post this issue. We are testing out ZGC in a Xmx975G JVM. It crashed with the attached hs_err file.

#  Internal Error (zMarkStackAllocator.cpp:81), pid=34334, tid=38183
#  fatal error: Mark stack space exhausted. Use -XX:ZMarkStackSpaceLimit=<size> to increase the maximum number of bytes allocated for mark stacks. Current limit is 8192M.

How can I find the right size for ZMarkStackSpaceLimit, so that jvm does not crash?

Can ZGC handle this case in a more graceful way ? Can ZGC adjust ZMarkStackSpaceLimit dynamically ? I mean, in a production environment, we cannot keep crashing JVM until we find the right ZMarkStackSpaceLimit value.

thanks,
Abdulhakim Unlu