geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6712) JsonValue Class initialisation might create a deadlock
Date Wed, 27 Feb 2019 13:36:00 GMT
Mark Struberg created GERONIMO-6712:
---------------------------------------

             Summary: JsonValue Class initialisation might create a deadlock
                 Key: GERONIMO-6712
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6712
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: specs
            Reporter: Mark Struberg
            Assignee: Mark Struberg


Our {{JsonValue}} class contains the following two static fields:

{souce}
JsonObject EMPTY_JSON_OBJECT = Json.createObjectBuilder().build();
JsonArray EMPTY_JSON_ARRAY = Json.createArrayBuilder().build();
{souce}

It basically starts up a whole Json Provider just for initialising the JsonValue class.
This might lead to a deadlock in the JVM during the classloading if it gets triggered in highly
concurrent situtations.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message