geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <>
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
             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:

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

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

View raw message