Request for reviews (S): 7187454: stack overflow in C2 compiler thread on Solaris x86
vladimir.kozlov at oracle.com
Fri Jul 27 17:06:24 PDT 2012
7187454: stack overflow in C2 compiler thread on Solaris x86
Solaris C++ compiler use a lot of space on stack in fastdebug build to allocate
on stack char (from FormatBuffer used by err_msg()) for each assert. As
result VM crashs with stack overflow in C2 compiler threads in recursive
methods. It is triggered by changes in the recent 292 push which added err_msg()
call in asserts in node.hpp file.
Added new FormatBufferResource class to use thread's resource area for error
message buffer. Added new err_msg_res() to use new class and use it in C2
instead of err_msg(). Removed workaround from makefile for C2 files.
More information about the hotspot-compiler-dev