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

Some functions misplaced in debug.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • None
    • b21
    • generic
    • generic

      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).

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

              Created:
              Updated:
              Resolved: