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