< prev index next >

src/share/vm/memory/metaspaceShared.cpp

Print this page
rev 8362 : [mq]: hotspot


  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 "classfile/dictionary.hpp"
  27 #include "classfile/loaderConstraints.hpp"
  28 #include "classfile/placeholders.hpp"
  29 #include "classfile/sharedClassUtil.hpp"
  30 #include "classfile/symbolTable.hpp"
  31 #include "classfile/systemDictionary.hpp"
  32 #include "code/codeCache.hpp"
  33 #include "interpreter/bytecodes.hpp"
  34 #include "interpreter/bytecodeStream.hpp"

  35 #include "memory/filemap.hpp"
  36 #include "memory/gcLocker.hpp"
  37 #include "memory/metaspace.hpp"
  38 #include "memory/metaspaceShared.hpp"
  39 #include "oops/objArrayOop.hpp"
  40 #include "oops/oop.inline.hpp"
  41 #include "runtime/os.hpp"
  42 #include "runtime/signature.hpp"
  43 #include "runtime/vm_operations.hpp"
  44 #include "runtime/vmThread.hpp"

  45 #include "utilities/hashtable.inline.hpp"
  46 
  47 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  48 
  49 int MetaspaceShared::_max_alignment = 0;
  50 
  51 ReservedSpace* MetaspaceShared::_shared_rs = NULL;
  52 
  53 MetaspaceSharedStats MetaspaceShared::_stats;
  54 
  55 bool MetaspaceShared::_link_classes_made_progress;
  56 bool MetaspaceShared::_check_classes_made_progress;
  57 bool MetaspaceShared::_has_error_classes;
  58 bool MetaspaceShared::_archive_loading_failed = false;
  59 // Read/write a data stream for restoring/preserving metadata pointers and
  60 // miscellaneous data from/to the shared archive file.
  61 
  62 void MetaspaceShared::serialize(SerializeClosure* soc) {
  63   int tag = 0;
  64   soc->do_tag(--tag);




  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 "classfile/dictionary.hpp"
  27 #include "classfile/loaderConstraints.hpp"
  28 #include "classfile/placeholders.hpp"
  29 #include "classfile/sharedClassUtil.hpp"
  30 #include "classfile/symbolTable.hpp"
  31 #include "classfile/systemDictionary.hpp"
  32 #include "code/codeCache.hpp"
  33 #include "gc/shared/gcLocker.hpp"
  34 #include "interpreter/bytecodeStream.hpp"
  35 #include "interpreter/bytecodes.hpp"
  36 #include "memory/filemap.hpp"

  37 #include "memory/metaspace.hpp"
  38 #include "memory/metaspaceShared.hpp"
  39 #include "oops/objArrayOop.hpp"
  40 #include "oops/oop.inline.hpp"
  41 #include "runtime/os.hpp"
  42 #include "runtime/signature.hpp"

  43 #include "runtime/vmThread.hpp"
  44 #include "runtime/vm_operations.hpp"
  45 #include "utilities/hashtable.inline.hpp"
  46 
  47 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  48 
  49 int MetaspaceShared::_max_alignment = 0;
  50 
  51 ReservedSpace* MetaspaceShared::_shared_rs = NULL;
  52 
  53 MetaspaceSharedStats MetaspaceShared::_stats;
  54 
  55 bool MetaspaceShared::_link_classes_made_progress;
  56 bool MetaspaceShared::_check_classes_made_progress;
  57 bool MetaspaceShared::_has_error_classes;
  58 bool MetaspaceShared::_archive_loading_failed = false;
  59 // Read/write a data stream for restoring/preserving metadata pointers and
  60 // miscellaneous data from/to the shared archive file.
  61 
  62 void MetaspaceShared::serialize(SerializeClosure* soc) {
  63   int tag = 0;
  64   soc->do_tag(--tag);


< prev index next >