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

assertion in set_trap_state() in methodDataOop.hpp is too strong.

XMLWordPrintable

    • b02
    • generic
    • generic
    • Verified

        In methodDataOop.hpp

          void set_trap_state(int new_state) {
            assert(ProfileTraps, "used only under +ProfileTraps");
            uint old_flags = (_header._struct._flags & flag_mask);
            _header._struct._flags = (new_state << trap_shift) | old_flags;
            assert(trap_state() == new_state, "sanity");
          }

        the assertion

        assert(trap_state() == new_state, "sanity");

        can fail if the trap state is being set simultaneously by another
        thread.

              jmasa Jon Masamitsu (Inactive)
              jmasa Jon Masamitsu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: