src/hotspot/share/oops/constMethod.hpp
changeset 58447 319173c62caa
parent 54927 1512d88b24c6
child 58861 2c3cc4b01880
equal deleted inserted replaced
58446:5c83830390ba 58447:319173c62caa
    24 
    24 
    25 #ifndef SHARE_OOPS_CONSTMETHOD_HPP
    25 #ifndef SHARE_OOPS_CONSTMETHOD_HPP
    26 #define SHARE_OOPS_CONSTMETHOD_HPP
    26 #define SHARE_OOPS_CONSTMETHOD_HPP
    27 
    27 
    28 #include "oops/oop.hpp"
    28 #include "oops/oop.hpp"
       
    29 #include "runtime/arguments.hpp"
    29 #include "utilities/align.hpp"
    30 #include "utilities/align.hpp"
    30 
    31 
    31 // An ConstMethod represents portions of a Java method which are not written to after
    32 // An ConstMethod represents portions of a Java method which are not written to after
    32 // the classfile is parsed(*see below).  This part of the method can be shared across
    33 // the classfile is parsed(*see below).  This part of the method can be shared across
    33 // processes in a read-only section with Class Data Sharing (CDS).  It's important
    34 // processes in a read-only section with Class Data Sharing (CDS).  It's important
   291     assert(!is_shared(),
   292     assert(!is_shared(),
   292            "shared methods in archive have fixed adapter_trampoline");
   293            "shared methods in archive have fixed adapter_trampoline");
   293     _adapter = adapter;
   294     _adapter = adapter;
   294   }
   295   }
   295   void set_adapter_trampoline(AdapterHandlerEntry** trampoline) {
   296   void set_adapter_trampoline(AdapterHandlerEntry** trampoline) {
   296     assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "must be");
   297     Arguments::assert_is_dumping_archive();
   297     if (DumpSharedSpaces) {
   298     if (DumpSharedSpaces) {
   298       assert(*trampoline == NULL,
   299       assert(*trampoline == NULL,
   299              "must be NULL during dump time, to be initialized at run time");
   300              "must be NULL during dump time, to be initialized at run time");
   300     }
   301     }
   301     _adapter_trampoline = trampoline;
   302     _adapter_trampoline = trampoline;