From 6e12b364f54de259c67b8bb6b3b66796095827e2 Mon Sep 17 00:00:00 2001 From: imperatorx Date: Wed, 25 Jan 2023 17:49:39 +0100 Subject: [PATCH] Replace synchronized with JUCL --- .../com/arjuna/ats/arjuna/coordinator/BasicAction.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java b/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java index 8d53c791f8..1e57c491e6 100644 --- a/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java +++ b/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/coordinator/BasicAction.java @@ -3208,13 +3208,9 @@ protected AbstractRecord insertRecord (RecordList reclist, AbstractRecord record if (lock) { - this.synchronizationLock.lock(); - - try { + synchronized (reclist) { if (!reclist.insert(record)) record = null; - } finally { - this.synchronizationLock.unlock(); } } else