comparison src/share/vm/utilities/vmError.hpp @ 11060:068b406e307f

7060111: race condition in VMError::report_and_die() Reviewed-by: zgu, coleenp Contributed-by: volker.simonis@gmail.com
author fparain
date Mon, 01 Jul 2013 09:13:19 +0000
parents 746b070f5022
children 38f750491293
comparison
equal deleted inserted replaced
11059:97c5acae48be 11060:068b406e307f
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, 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.
94 const char* detail_msg() const { return _detail_msg; } 94 const char* detail_msg() const { return _detail_msg; }
95 bool should_report_bug(unsigned int id) { 95 bool should_report_bug(unsigned int id) {
96 return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR); 96 return (id != OOM_MALLOC_ERROR) && (id != OOM_MMAP_ERROR);
97 } 97 }
98 98
99 static fdStream out;
100 static fdStream log; // error log used by VMError::report_and_die()
101
99 public: 102 public:
100 103
101 // Constructor for crashes 104 // Constructor for crashes
102 VMError(Thread* thread, unsigned int sig, address pc, void* siginfo, 105 VMError(Thread* thread, unsigned int sig, address pc, void* siginfo,
103 void* context); 106 void* context);