--- old/src/share/vm/utilities/vmError.hpp 2017-06-16 19:47:32.113063768 -0400 +++ new/src/share/vm/utilities/vmError.hpp 2017-06-16 19:47:31.985057365 -0400 @@ -28,6 +28,7 @@ #include "utilities/globalDefinitions.hpp" class Decoder; +class frame; class VM_ReportJavaOutOfMemory; class VMError : public AllStatic { @@ -99,6 +100,12 @@ static void print_stack_trace(outputStream* st, JavaThread* jt, char* buf, int buflen, bool verbose = false); + // public for use by the internal non-product debugger. + NOT_PRODUCT(public:) + static void print_native_stack(outputStream* st, frame fr, Thread* t, + char* buf, int buf_size); + NOT_PRODUCT(private:) + static bool should_report_bug(unsigned int id) { return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR); }