From 56804ddd2bfd37542916c1233cdea85153d69508 Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Thu, 14 Dec 2023 12:42:15 -0800 Subject: [PATCH] [rubygems/rubygems] Use a mutex around Checksum::Store @store access Not wrapping to_lock since access to it is single threaded and read-only at the time of writing the lockfile. https://github.com/rubygems/rubygems/commit/3b53aa1b12 --- lib/bundler/checksum.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bundler/checksum.rb b/lib/bundler/checksum.rb index 60ba93417c..82334fa1e3 100644 --- a/lib/bundler/checksum.rb +++ b/lib/bundler/checksum.rb @@ -189,7 +189,6 @@ module Bundler # that contain the same gem with different checksums. def replace(spec, checksum) return unless checksum - lock_name = spec.name_tuple.lock_name @store_mutex.synchronize do existing = fetch_checksum(lock_name, checksum.algo)