12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "memory/allocation.inline.hpp"
27 #include "runtime/mutexLocker.hpp"
28 #include "runtime/os.inline.hpp"
29 #include "runtime/osThread.hpp"
30 #include "runtime/thread.inline.hpp"
31 #include "runtime/threadCritical.hpp"
32 #include "runtime/threadLocalStorage.hpp"
33 #include "runtime/timer.hpp"
34 #include "utilities/events.hpp"
35
36
37 EventLog* Events::_logs = NULL;
38 StringEventLog* Events::_messages = NULL;
39 StringEventLog* Events::_exceptions = NULL;
40 StringEventLog* Events::_redefinitions = NULL;
41 StringEventLog* Events::_deopt_messages = NULL;
42
43 EventLog::EventLog() {
44 // This normally done during bootstrap when we're only single
45 // threaded but use a ThreadCritical to ensure inclusion in case
46 // some are created slightly late.
47 ThreadCritical tc;
48 _next = Events::_logs;
49 Events::_logs = this;
50 }
51
52 // For each registered event logger, print out the current contents of
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "memory/allocation.inline.hpp"
27 #include "runtime/mutexLocker.hpp"
28 #include "runtime/os.inline.hpp"
29 #include "runtime/osThread.hpp"
30 #include "runtime/thread.inline.hpp"
31 #include "runtime/threadCritical.hpp"
32 #include "runtime/timer.hpp"
33 #include "utilities/events.hpp"
34
35
36 EventLog* Events::_logs = NULL;
37 StringEventLog* Events::_messages = NULL;
38 StringEventLog* Events::_exceptions = NULL;
39 StringEventLog* Events::_redefinitions = NULL;
40 StringEventLog* Events::_deopt_messages = NULL;
41
42 EventLog::EventLog() {
43 // This normally done during bootstrap when we're only single
44 // threaded but use a ThreadCritical to ensure inclusion in case
45 // some are created slightly late.
46 ThreadCritical tc;
47 _next = Events::_logs;
48 Events::_logs = this;
49 }
50
51 // For each registered event logger, print out the current contents of
|