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

Move the existing error handling code out of process

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • aarch64
    • os_x

      According to "man sigaction"

      "All functions not in the above lists are considered to be unsafe with respect to signals. That is to say, the behaviour of such functions when called from a signal handler is undefined. In general though, signal handlers should do
           little more than set a flag; most other actions are not safe."

      So most of our existing error handling code is out of compliance here.

      Additional consequence of moving it out of process is that other parts of VM would benefit, like our current WX memory protection mechanism, that requires non-null thread.

      For WX memory protection we could be using statically created pthread TLS mechanism to keep track of the state.

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

              Created:
              Updated:
              Resolved: