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

Use #pragma once

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P4
    • 13
    • 13
    • hotspot

    Description

      Instead of

      -#ifndef SHARE_VM_OOPS_KLASS_HPP
      -#define SHARE_VM_OOPS_KLASS_HPP
      +#pragma once
      ...
      -#endif // SHARE_VM_OOPS_KLASS_HPP

      Since the repository consolidation, the #define names reflect the old directory structure and are wrong. Rather than fix these and continue with this error-prone method, use #pragma once, which all modern compilers support.

      Attachments

        Issue Links

          Activity

            People

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: