Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143269

Refactor code in universe_post_init that sets up methods to upcall

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b115


        SystemDictionary::Finalizer_klass()->link_class(CHECK_false);
        Method* m = SystemDictionary::Finalizer_klass()->find_method(
                                        vmSymbols::register_method_name(),
                                        vmSymbols::register_method_signature());
        if (m == NULL || !m->is_static()) {
          tty->print_cr("Unable to link/verify Finalizer.register method");
          return false; // initialization failed (cannot throw exception yet)
        }
        Universe::_finalizer_register_cache->init(
          SystemDictionary::Finalizer_klass(), m);

      With stack walking API, the same pattern appears too many times.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: