src/share/vm/memory/metaspaceShared.cpp

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan


  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/symbolTable.hpp"
  30 #include "classfile/systemDictionary.hpp"
  31 #include "code/codeCache.hpp"
  32 #include "memory/filemap.hpp"
  33 #include "memory/gcLocker.hpp"
  34 #include "memory/metaspace.hpp"
  35 #include "memory/metaspaceShared.hpp"
  36 #include "oops/objArrayOop.hpp"
  37 #include "oops/oop.inline.hpp"

  38 #include "runtime/signature.hpp"
  39 #include "runtime/vm_operations.hpp"
  40 #include "runtime/vmThread.hpp"
  41 #include "utilities/hashtable.inline.hpp"
  42 
  43 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  44 
  45 int MetaspaceShared::_max_alignment = 0;
  46 
  47 ReservedSpace* MetaspaceShared::_shared_rs = NULL;
  48 
  49 // Read/write a data stream for restoring/preserving metadata pointers and
  50 // miscellaneous data from/to the shared archive file.
  51 
  52 void MetaspaceShared::serialize(SerializeClosure* soc) {
  53   int tag = 0;
  54   soc->do_tag(--tag);
  55 
  56   // Verify the sizes of various metadata in the system.
  57   soc->do_tag(sizeof(Method));




  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/symbolTable.hpp"
  30 #include "classfile/systemDictionary.hpp"
  31 #include "code/codeCache.hpp"
  32 #include "memory/filemap.hpp"
  33 #include "memory/gcLocker.hpp"
  34 #include "memory/metaspace.hpp"
  35 #include "memory/metaspaceShared.hpp"
  36 #include "oops/objArrayOop.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "runtime/os.hpp"
  39 #include "runtime/signature.hpp"
  40 #include "runtime/vm_operations.hpp"
  41 #include "runtime/vmThread.hpp"
  42 #include "utilities/hashtable.inline.hpp"
  43 
  44 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  45 
  46 int MetaspaceShared::_max_alignment = 0;
  47 
  48 ReservedSpace* MetaspaceShared::_shared_rs = NULL;
  49 
  50 // Read/write a data stream for restoring/preserving metadata pointers and
  51 // miscellaneous data from/to the shared archive file.
  52 
  53 void MetaspaceShared::serialize(SerializeClosure* soc) {
  54   int tag = 0;
  55   soc->do_tag(--tag);
  56 
  57   // Verify the sizes of various metadata in the system.
  58   soc->do_tag(sizeof(Method));