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 jbrbot
parent 46be78dafc
commit 838d236703

View File

@@ -2157,10 +2157,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 {