git: openjdk/mobile: 8231387: java.security.Provider.getService returns random result due to race condition with mutating methods in the same class

duke duke at openjdk.java.net
Wed Sep 25 15:41:30 UTC 2019


Changeset: 2b568116
Author:    Tianmin Shi <tianshi at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
Date:      2019-09-25 08:29:03 +0000
URL:       https://github.com/openjdk/mobile/commit/2b568116

8231387: java.security.Provider.getService returns random result due to race condition with mutating methods in the same class

Synchronize access to legacyMap in Provider.getService.

Reviewed-by: valeriep

! src/java.base/share/classes/java/security/Provider.java
+ test/jdk/java/security/Provider/GetServiceRace.java




More information about the mobile-changes mailing list