src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.cpp
changeset 54847 59ea39bb2809
parent 52334 a181612f0715
child 57870 00860d9caf4d
equal deleted inserted replaced
54846:e4049522b074 54847:59ea39bb2809
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, 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.
    85     return;
    85     return;
    86   }
    86   }
    87   static const Symbol* jdk_internal_event_sym = NULL;
    87   static const Symbol* jdk_internal_event_sym = NULL;
    88   if (jdk_internal_event_sym == NULL) {
    88   if (jdk_internal_event_sym == NULL) {
    89     // setup when loading the first TypeArrayKlass (Universe::genesis) hence single threaded invariant
    89     // setup when loading the first TypeArrayKlass (Universe::genesis) hence single threaded invariant
    90     jdk_internal_event_sym = SymbolTable::new_permanent_symbol("jdk/internal/event/Event", Thread::current());
    90     jdk_internal_event_sym = SymbolTable::new_permanent_symbol("jdk/internal/event/Event");
    91   }
    91   }
    92   assert(jdk_internal_event_sym != NULL, "invariant");
    92   assert(jdk_internal_event_sym != NULL, "invariant");
    93 
    93 
    94   static const Symbol* jdk_jfr_event_sym = NULL;
    94   static const Symbol* jdk_jfr_event_sym = NULL;
    95   if (jdk_jfr_event_sym == NULL) {
    95   if (jdk_jfr_event_sym == NULL) {
    96     // setup when loading the first TypeArrayKlass (Universe::genesis) hence single threaded invariant
    96     // setup when loading the first TypeArrayKlass (Universe::genesis) hence single threaded invariant
    97     jdk_jfr_event_sym = SymbolTable::new_permanent_symbol("jdk/jfr/Event", Thread::current());
    97     jdk_jfr_event_sym = SymbolTable::new_permanent_symbol("jdk/jfr/Event");
    98   }
    98   }
    99   assert(jdk_jfr_event_sym != NULL, "invariant");
    99   assert(jdk_jfr_event_sym != NULL, "invariant");
   100   const Symbol* const klass_name = klass->name();
   100   const Symbol* const klass_name = klass->name();
   101 
   101 
   102   if (!found_jdk_internal_event_klass) {
   102   if (!found_jdk_internal_event_klass) {