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

Clean up runtime code that compares 'this' to NULL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 12
    • 12
    • hotspot
    • b17

    Description


      jdk/src/hotspot/share/runtime/perfData.cpp

      593PerfData* PerfDataList::find_by_name(const char* name) {
      594
      595 // if add_item hasn't been called the list won't be initialized
      596 if (this == NULL)
      597 return NULL;

      jdk/src/hotspot/share/oops/symbol.cpp

      295void Symbol::print_on(outputStream* st) const {
      296 if (this == NULL) {
      297 st->print_cr("NULL");

      308void Symbol::print_value_on(outputStream* st) const {
      309 if (this == NULL) {
      310 st->print("NULL");


      src/hotspot/os/linux/osThread_linux.cpp: assert(this != NULL, "check");
      src/hotspot/os/aix/osThread_aix.cpp: assert(this != NULL, "check");
      src/hotspot/os/bsd/osThread_bsd.cpp: assert(this != NULL, "check");

      Attachments

        Issue Links

          Activity

            People

              hseigel Harold Seigel (Inactive)
              mlautman Mary Lautman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: