JBR-5741 broken build in main because of hotspot changes (JDK-8309613)

Added missing parameter

(cherry picked from commit c4c6d022f8)
This commit is contained in:
Alexey Ushakov
2023-06-15 15:20:39 +02:00
committed by Vitaly Provodin
parent 449a5564d8
commit c06f5d6fc1

View File

@@ -2208,10 +2208,11 @@ void VMError::record_oome_stack(const char *message) {
MutexLocker ml(OOMEStacks_lock);
static char buf[O_BUFLEN];
address lastpc = nullptr;
stringStream st(_oome_stacktrace[_oome_free_index], OOME_STACKTRACE_BUFSIZE);
st.print_cr("OutOfMemoryError(\"%s\"):", message);
if (os::platform_print_native_stack(&st, _context, buf, sizeof(buf))) {
if (os::platform_print_native_stack(&st, _context, buf, sizeof(buf), lastpc)) {
// We have printed the native stack in platform-specific code
// Windows/x64 needs special handling.
} else {