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

Compute modifiers called twice on same state during InstanceKlass creation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: