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

const-correctness for ucontext_t* reading functions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 9
    • hotspot
    • None
    • b103

      There are a number of functions which read ucontext_t* and where the parameters are unnecessarily non-const:

      os::<os>::ucontext_get_pc
      os::<os>::ucontext_get_sp
      os::<os>::ucontext_get_fp
      os::print_context
      os::print_register_info
      os::fetch_frame_from_context
      os::abort

      For all these functions, context should be passed in as const pointer.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: