RFR: 8302262: Remove -XX:SuppressErrorAt develop option
    Kim Barrett 
    kbarrett at openjdk.org
       
    Sat Feb 11 19:16:26 UTC 2023
    
    
  
On Sat, 11 Feb 2023 11:32:07 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Stupid question, what happens if a function is decorated with noreturn and you return? E.g. in case of the `Debugging` switch? Or by just falling off the function, failing to call exit or abort?
Undefined behavior.  gcc warns about this (with the warning levels we currently have).  I didn't experiment with others.
The `Debugging` variable is another thing that will need to be addressed in order to make the failed assertion reporters
noreturn.  Also Windows-only `UseOSErrorReporting`.  (My in-progress prototype for JDK-8302189 retains those
features in a different form, rather than outright deletion as being done here for `SuppressErrorAt`.)
-------------
PR: https://git.openjdk.org/jdk/pull/12521
    
    
More information about the hotspot-dev
mailing list