< prev index next >

src/os/solaris/vm/os_solaris.cpp

Print this page




5831 
5832   jio_snprintf(p, buflen-len,
5833                "\n\n"
5834                "Do you want to debug the problem?\n\n"
5835                "To debug, run 'dbx - %d'; then switch to thread " INTX_FORMAT "\n"
5836                "Enter 'yes' to launch dbx automatically (PATH must include dbx)\n"
5837                "Otherwise, press RETURN to abort...",
5838                os::current_process_id(), os::current_thread_id());
5839 
5840   bool yes = os::message_box("Unexpected Error", buf);
5841 
5842   if (yes) {
5843     // yes, user asked VM to launch debugger
5844     jio_snprintf(buf, sizeof(buf), "dbx - %d", os::current_process_id());
5845 
5846     os::fork_and_exec(buf);
5847     yes = false;
5848   }
5849   return yes;
5850 }












5831 
5832   jio_snprintf(p, buflen-len,
5833                "\n\n"
5834                "Do you want to debug the problem?\n\n"
5835                "To debug, run 'dbx - %d'; then switch to thread " INTX_FORMAT "\n"
5836                "Enter 'yes' to launch dbx automatically (PATH must include dbx)\n"
5837                "Otherwise, press RETURN to abort...",
5838                os::current_process_id(), os::current_thread_id());
5839 
5840   bool yes = os::message_box("Unexpected Error", buf);
5841 
5842   if (yes) {
5843     // yes, user asked VM to launch debugger
5844     jio_snprintf(buf, sizeof(buf), "dbx - %d", os::current_process_id());
5845 
5846     os::fork_and_exec(buf);
5847     yes = false;
5848   }
5849   return yes;
5850 }
5851 
5852 int os::create_file_for_heap(const char* dir, size_t size) {
5853   VMError::report_and_die("Allocating object heap with backing file is not supported for Solaris");
5854   return false;
5855 }
5856 
5857 bool os::map_memory_to_file(char* base, size_t size, int file_desc) {
5858   VMError::report_and_die("Allocating object heap with backing file is not supported for Solaris");
5859   return false;
5860 }
< prev index next >