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

Some functions misplaced in debug.hpp

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      generic

      Description

      There are a few function declarations at the end of debug.hpp that seem misplaced there. Some might be better placed in VMError. Some are test support, though perhaps VMError is still a good place for them. The functions in question are:

      is_error_reported()
      set_error_reported()
      test_error_handler() -- NOT_PRODUCT
      controlled_crash(int) -- NOT_PRODUCT
      get_segfault_address() -- NOT_PRODUCT
      pd_ps(frame)

      Moving these elsewhere would leave debug.hpp as containing assert-like macros plus functions for reporting errors (some being in support of the macros).

        Attachments

          Activity

            People

            • Assignee:
              coleenp Coleen Phillimore
              Reporter:
              kbarrett Kim Barrett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: