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

Incorrect location for the assert for blob != nullptr in CodeBlob::create

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 25
    • 25
    • hotspot
    • 25
    • master

      In CodeBlob::create:

      {
        ...
            blob = archived_blob->restore(code_cache_buffer,
                                          name,
                                          archived_reloc_data,
                                          archived_oop_maps);
      #ifndef PRODUCT
            blob->use_remarks(archived_asm_remarks);
            archived_asm_remarks.clear();
            blob->use_strings(archived_dbg_strings);
            archived_dbg_strings.clear();
      #endif // PRODUCT

            assert(blob != nullptr, "sanity check");
        ...
      }

      assert for blob != nullptr should be done immediately after the call to archived_blob->restore()

            asmehra Ashutosh Mehra
            asmehra Ashutosh Mehra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: