comparison src/share/vm/utilities/vmError.cpp @ 18007:364b73402247

Merge
author asaha
date Thu, 22 May 2014 11:09:06 -0700
parents f8068fa6aa46 5656140324ed
children f73af4455d7d
comparison
equal deleted inserted replaced
17920:382a82b0a3e7 18007:364b73402247
1 /* 1 /*
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
984 // open log file 984 // open log file
985 int fd = prepare_log_file(ErrorFile, "hs_err_pid%p.log", buffer, sizeof(buffer)); 985 int fd = prepare_log_file(ErrorFile, "hs_err_pid%p.log", buffer, sizeof(buffer));
986 if (fd != -1) { 986 if (fd != -1) {
987 out.print_raw("# An error report file with more information is saved as:\n# "); 987 out.print_raw("# An error report file with more information is saved as:\n# ");
988 out.print_raw_cr(buffer); 988 out.print_raw_cr(buffer);
989 os::set_error_file(buffer);
990 989
991 log.set_fd(fd); 990 log.set_fd(fd);
992 } else { 991 } else {
993 out.print_raw_cr("# Can not save log file, dump to screen.."); 992 out.print_raw_cr("# Can not save log file, dump to screen..");
994 log.set_fd(defaultStream::output_fd()); 993 log.set_fd(defaultStream::output_fd());