< prev index next >

src/hotspot/share/oops/constMethod.hpp

Print this page

        

*** 24,33 **** --- 24,34 ---- #ifndef SHARE_OOPS_CONSTMETHOD_HPP #define SHARE_OOPS_CONSTMETHOD_HPP #include "oops/oop.hpp" + #include "runtime/arguments.hpp" #include "utilities/align.hpp" // An ConstMethod represents portions of a Java method which are not written to after // the classfile is parsed(*see below). This part of the method can be shared across // processes in a read-only section with Class Data Sharing (CDS). It's important
*** 291,301 **** assert(!is_shared(), "shared methods in archive have fixed adapter_trampoline"); _adapter = adapter; } void set_adapter_trampoline(AdapterHandlerEntry** trampoline) { ! assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "must be"); if (DumpSharedSpaces) { assert(*trampoline == NULL, "must be NULL during dump time, to be initialized at run time"); } _adapter_trampoline = trampoline; --- 292,302 ---- assert(!is_shared(), "shared methods in archive have fixed adapter_trampoline"); _adapter = adapter; } void set_adapter_trampoline(AdapterHandlerEntry** trampoline) { ! assert(Arguments::is_dumping_archive(), "must be"); if (DumpSharedSpaces) { assert(*trampoline == NULL, "must be NULL during dump time, to be initialized at run time"); } _adapter_trampoline = trampoline;
< prev index next >