Compute modifiers called twice on same state during InstanceKlass creation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None

      classFileParser::parseClassFile()
       // reinitialize modifiers, using the InnerClasses attribute
       4255 int computed_modifiers = this_klass->compute_modifier_flags(CHECK_(nullHandle));
                  this_klass->set_modifier_flags(computed_modifiers);

      After this there are three calls to validate some stuff, they are using a read context.

      After this is the call to


      void java_lang_Class::create_mirror(KlassHandle k, Handle class_loader,
                                          Handle protection_domain, TRAPS) {

      which does the same thing (both gather and set) the (same) flags already computed and set.

            Assignee:
            Markus Grönlund
            Reporter:
            Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: