- 
    Enhancement 
- 
    Resolution: Fixed
- 
     P5 P5
- 
    None
- 
        b03
                    In the method jdk.internal.misc.Signal#handle there is consecutive Hashtable.get+Hashtable.remove calls:
Signal.Handler oldHandler = handlers.get(sig);
handlers.remove(sig);
Instead of separate Hashtable.get/remove calls we can just use value returned by remove.
Signal.Handler oldHandler = handlers.get(sig);
handlers.remove(sig);
Instead of separate Hashtable.get/remove calls we can just use value returned by remove.
 
        