Refactor code in universe_post_init that sets up methods to upcall

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: