Skip to content

Commit

Permalink
CP-49045: drop global lock around sexpression parsing
Browse files Browse the repository at this point in the history
TODO: this will need lots of testing and review.
Should probably start by reproducing the original issue with a unit test.

Signed-off-by: Edwin Török <[email protected]>
  • Loading branch information
edwintorok committed Apr 29, 2024
1 parent f442701 commit 18dea0e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ocaml/libs/sexpr/sExpr_TS.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
* GNU Lesser General Public License for more details.
*)

let lock = Mutex.create ()

let of_string s =
Xapi_stdext_threads.Threadext.Mutex.execute lock (fun () ->
SExprParser.expr SExprLexer.token (Lexing.from_string s)
)
let of_string s = SExprParser.expr SExprLexer.token (Lexing.from_string s)

let string_of = SExpr.string_of

0 comments on commit 18dea0e

Please sign in to comment.