src/hotspot/share/oops/instanceKlass.hpp
changeset 48873 9536c39ac6de
parent 48637 7bba05746c44
child 48874 f09fdaad7321
equal deleted inserted replaced
48872:c7774afc93e3 48873:9536c39ac6de
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, 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.
   133     being_initialized,                  // currently running class initializer
   133     being_initialized,                  // currently running class initializer
   134     fully_initialized,                  // initialized (successfull final state)
   134     fully_initialized,                  // initialized (successfull final state)
   135     initialization_error                // error happened during initialization
   135     initialization_error                // error happened during initialization
   136   };
   136   };
   137 
   137 
   138   static int number_of_instance_classes() { return _total_instanceKlass_count; }
       
   139 
       
   140  private:
   138  private:
   141   static volatile int _total_instanceKlass_count;
       
   142   static InstanceKlass* allocate_instance_klass(const ClassFileParser& parser, TRAPS);
   139   static InstanceKlass* allocate_instance_klass(const ClassFileParser& parser, TRAPS);
   143 
   140 
   144  protected:
   141  protected:
   145   // If you add a new field that points to any metaspace object, you
   142   // If you add a new field that points to any metaspace object, you
   146   // must add this field to InstanceKlass::metaspace_pointers_do().
   143   // must add this field to InstanceKlass::metaspace_pointers_do().