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

[CRaC] Excessive PosixAttachListener-related availability and references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-crac
    • repo-crac
    • hotspot
    • None

      In non-CRaC JDK `PosixAttachListener` and related classes are declared, defined, implemented and used only on POSIX non-AIX platforms when "services" feature is included.

      In CRaC, however, they are declared on all POSIX platforms always, defined on all POSIX platforms when "services" feature is included, and implemented only on POSIX non-AIX platforms when "services" feature is included.

      This makes them visible even when they cannot actually be used. On AIX there are even calls to `PosixAttachListener` even though it is not implemented for AIX (which has its own `AixAttachListener`) — I believe this should cause a compilation error on AIX, although I don't have access to it to verify.

      To fix it a few pre-processor directives need to be changed.

            tpushkin Timofei Pushkin
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: