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

Remove javaClasses offset tests

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • None
    • hotspot
    • b02

    Description

      There are a few tests that offsets have been initialized in javaClasses, e.g:

      bool java_lang_ClassLoader::parallelCapable(oop class_loader) {
        if (parallelCapable_offset == -1) {
           // Default for backward compatibility is false
           return false;
        }
         return (class_loader->obj_field(parallelCapable_offset) != NULL);
      }

      Assumedly these are backwards compatibility precautions relevant in the era of hsx. All cases can now be removed or turned into assertions.

      Attachments

        Activity

          People

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: