String-based Interners still can cause deadlocks

Description

replaced mutexes based on interned Strings with Guava's Interner. However, when this is used with String values, it exhibits the same locking behavior as interned Strings, which is undersirable.

This code illustrates the problem. The desired result would output b before 2, but that’s not the case. Printing of b appears to be waiting for the mutex to be released.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created October 12, 2021 at 1:35 PM
Updated November 4, 2021 at 9:12 AM
Resolved November 4, 2021 at 9:12 AM