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

Remove javaClasses offset tests

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: