Integrated: 8288140: Avoid redundant Hashtable.get call in Signal.handle

Andrey Turbanov aturbanov at openjdk.java.net
Wed Jun 15 10:38:00 UTC 2022


On Thu, 9 Jun 2022 07:35:43 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> https://github.com/openjdk/jdk/blob/bc28baeba9360991e9b7575e1fbe178d873ccfc1/src/java.base/share/classes/jdk/internal/misc/Signal.java#L177-L178
> 
> Instead of separate Hashtable.get/remove calls we can just use value returned by `remove`,
> It results in cleaner and a bit faster code.

This pull request has now been integrated.

Changeset: dfeeb6f8
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dfeeb6f8f3c42d6fe2adf89f243e7011827db122
Stats:     19 lines in 1 file changed: 0 ins; 1 del; 18 mod

8288140: Avoid redundant Hashtable.get call in Signal.handle

Reviewed-by: rriggs

-------------

PR: https://git.openjdk.org/jdk/pull/9100


More information about the core-libs-dev mailing list