src/share/vm/utilities/events.cpp

changeset 8720
6bed084fd02f
parent 6782
f73af4455d7d
child 8856
ac27a9c85bea
equal deleted inserted replaced
8719:f89cf87d867d 8720:6bed084fd02f
1 /* 1 /*
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2017, 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.
34 34
35 35
36 EventLog* Events::_logs = NULL; 36 EventLog* Events::_logs = NULL;
37 StringEventLog* Events::_messages = NULL; 37 StringEventLog* Events::_messages = NULL;
38 StringEventLog* Events::_exceptions = NULL; 38 StringEventLog* Events::_exceptions = NULL;
39 StringEventLog* Events::_redefinitions = NULL;
39 StringEventLog* Events::_deopt_messages = NULL; 40 StringEventLog* Events::_deopt_messages = NULL;
40 41
41 EventLog::EventLog() { 42 EventLog::EventLog() {
42 // This normally done during bootstrap when we're only single 43 // This normally done during bootstrap when we're only single
43 // threaded but use a ThreadCritical to ensure inclusion in case 44 // threaded but use a ThreadCritical to ensure inclusion in case
63 64
64 void Events::init() { 65 void Events::init() {
65 if (LogEvents) { 66 if (LogEvents) {
66 _messages = new StringEventLog("Events"); 67 _messages = new StringEventLog("Events");
67 _exceptions = new StringEventLog("Internal exceptions"); 68 _exceptions = new StringEventLog("Internal exceptions");
69 _redefinitions = new StringEventLog("Classes redefined");
68 _deopt_messages = new StringEventLog("Deoptimization events"); 70 _deopt_messages = new StringEventLog("Deoptimization events");
69 } 71 }
70 } 72 }
71 73
72 void eventlog_init() { 74 void eventlog_init() {

mercurial