469 static bool is_bootstrapping() { return _bootstrapping; }
470 static bool is_module_initialized() { return _module_initialized; }
471 static bool is_fully_initialized() { return _fully_initialized; }
472
473 static bool on_page_boundary(void* addr);
474 static bool should_fill_in_stack_trace(Handle throwable);
475 static void check_alignment(uintx size, uintx alignment, const char* name);
476
477 // Iteration
478
479 // Apply "f" to the addresses of all the direct heap pointers maintained
480 // as static fields of "Universe".
481 static void oops_do(OopClosure* f, bool do_all = false);
482
483 // CDS support
484 static void serialize(SerializeClosure* f, bool do_all = false);
485
486 // Apply "f" to all klasses for basic types (classes not present in
487 // SystemDictionary).
488 static void basic_type_classes_do(void f(Klass*));
489 static void metaspace_pointers_do(MetaspaceClosure* it);
490
491 // Debugging
492 enum VERIFY_FLAGS {
493 Verify_Threads = 1,
494 Verify_Heap = 2,
495 Verify_SymbolTable = 4,
496 Verify_StringTable = 8,
497 Verify_CodeCache = 16,
498 Verify_SystemDictionary = 32,
499 Verify_ClassLoaderDataGraph = 64,
500 Verify_MetaspaceUtils = 128,
501 Verify_JNIHandles = 256,
502 Verify_CodeCacheOops = 512,
503 Verify_All = -1
504 };
505 static void initialize_verify_flags();
506 static bool should_verify_subset(uint subset);
507 static bool verify_in_progress() { return _verify_in_progress; }
508 static void verify(VerifyOption option, const char* prefix);
|
469 static bool is_bootstrapping() { return _bootstrapping; }
470 static bool is_module_initialized() { return _module_initialized; }
471 static bool is_fully_initialized() { return _fully_initialized; }
472
473 static bool on_page_boundary(void* addr);
474 static bool should_fill_in_stack_trace(Handle throwable);
475 static void check_alignment(uintx size, uintx alignment, const char* name);
476
477 // Iteration
478
479 // Apply "f" to the addresses of all the direct heap pointers maintained
480 // as static fields of "Universe".
481 static void oops_do(OopClosure* f, bool do_all = false);
482
483 // CDS support
484 static void serialize(SerializeClosure* f, bool do_all = false);
485
486 // Apply "f" to all klasses for basic types (classes not present in
487 // SystemDictionary).
488 static void basic_type_classes_do(void f(Klass*));
489 static void basic_type_classes_do(KlassClosure* closure);
490 static void metaspace_pointers_do(MetaspaceClosure* it);
491
492 // Debugging
493 enum VERIFY_FLAGS {
494 Verify_Threads = 1,
495 Verify_Heap = 2,
496 Verify_SymbolTable = 4,
497 Verify_StringTable = 8,
498 Verify_CodeCache = 16,
499 Verify_SystemDictionary = 32,
500 Verify_ClassLoaderDataGraph = 64,
501 Verify_MetaspaceUtils = 128,
502 Verify_JNIHandles = 256,
503 Verify_CodeCacheOops = 512,
504 Verify_All = -1
505 };
506 static void initialize_verify_flags();
507 static bool should_verify_subset(uint subset);
508 static bool verify_in_progress() { return _verify_in_progress; }
509 static void verify(VerifyOption option, const char* prefix);
|