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

Remove symbolic constant badOopVal and macro definition badOop from globalDefinitions.hpp

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      Questionable remaining use of badOopVal, potential for removal.

      share/utilities/globalDefinitions.hpp:const intptr_t badOopVal = -1; // generic "bad oop" value
      share/utilities/globalDefinitions.hpp:#define badOop (cast_to_oop(::badOopVal))
      share/code/compiledIC.cpp: assert (cache == NULL || cache != (Metadata*)badOopVal, "invalid metadata");

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lfoltan Lois Foltan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: