equal
deleted
inserted
replaced
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; |