< prev index next >

src/hotspot/share/cds/aotClassInitializer.hpp

Print this page

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 #ifndef SHARE_CDS_AOTCLASSINITIALIZER_HPP
26 #define SHARE_CDS_AOTCLASSINITIALIZER_HPP
27 
28 #include "memory/allStatic.hpp"
29 #include "utilities/exceptions.hpp"
30 
31 class InstanceKlass;
32 
33 class AOTClassInitializer : AllStatic {
34   class AllowedSpec;
35   static bool is_allowed(AllowedSpec* specs, InstanceKlass* ik);
36 





37 public:






38   // Called by heapShared.cpp to see if src_ik->java_mirror() can be archived in
39   // the initialized state.
40   static bool can_archive_initialized_mirror(InstanceKlass* src_ik);
41 
42   static bool is_runtime_setup_required(InstanceKlass* ik);
43   static void call_runtime_setup(JavaThread* current, InstanceKlass* ik);
44 };
45 
46 #endif // SHARE_CDS_AOTCLASSINITIALIZER_HPP

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 #ifndef SHARE_CDS_AOTCLASSINITIALIZER_HPP
26 #define SHARE_CDS_AOTCLASSINITIALIZER_HPP
27 
28 #include "memory/allStatic.hpp"
29 #include "utilities/exceptions.hpp"
30 
31 class InstanceKlass;
32 
33 class AOTClassInitializer : AllStatic {
34   class AllowedSpec;
35   static bool is_allowed(AllowedSpec* specs, InstanceKlass* ik);
36 
37   static bool has_default_static_fields(InstanceKlass* ik);
38   static bool check_can_be_preinited(InstanceKlass* ik);
39   static bool can_be_preinited(InstanceKlass* ik);
40   static bool can_be_preinited_locked(InstanceKlass* ik);
41 
42 public:
43   // Called by metaspaceShared.cpp to speculatively initialize a class (if the results
44   // of initialization can be safely archived.
45   static void maybe_preinit_class(InstanceKlass* ik, TRAPS);
46 
47   static void reset_preinit_check();
48 
49   // Called by heapShared.cpp to see if src_ik->java_mirror() can be archived in
50   // the initialized state.
51   static bool can_archive_initialized_mirror(InstanceKlass* src_ik);
52 
53   static bool is_runtime_setup_required(InstanceKlass* ik);
54   static void call_runtime_setup(JavaThread* current, InstanceKlass* ik);
55 };
56 
57 #endif // SHARE_CDS_AOTCLASSINITIALIZER_HPP
< prev index next >