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

[asan] exclude two tests that their expectations from VM output are not produced under ASAN builds

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • aarch64
    • iOS

      In ASAN enabled build on macosx-aarch64, the tests
      1) runtime/ErrorHandling/PrintVMInfoAtExitTest.java
      2) runtime/ErrorHandling/AccessZeroNKlassHitsProtectionZone.java

      expect some VM outputs that are not produced in ASAN builds.
      For case 2) explicitly ASAN is excluded:
      The source code for os::print_location() in os.cpp:1292-1300
      #if !INCLUDE_ASAN

        bool accessible = is_readable_pointer(addr);

        // Check if addr points into the narrow Klass protection zone
        if (UseCompressedClassPointers && CompressedKlassPointers::is_in_protection_zone(addr)) {
          st->print_cr(PTR_FORMAT " points into nKlass protection zone", p2i(addr));
          return;
        }

            azafari Afshin Zafari
            azafari Afshin Zafari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: