You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an unnecessary cloning in org.vanilladb.core.storage.buffer.BufferMgr. Here is the code snippet:
privatevoidunpinAll(Transactiontx) {
// Copy the set of pinned buffers to avoid ConcurrentModificationExceptionSet<PinningBuffer> pinnedBuffs = newHashSet<PinningBuffer>(pinningBuffers.values());
if (pinnedBuffs != null) {
for (PinningBufferpinnedBuff : pinnedBuffs)
bufferPool.unpin(pinnedBuff.buffer);
}
synchronized (bufferPool) {
bufferPool.notifyAll();
}
}
This may be a legacy code that used to prevent ConcurrentModificationExeception, but this became unnecessary as we updated the logic of the code in the past.
The text was updated successfully, but these errors were encountered:
There is an unnecessary cloning in
org.vanilladb.core.storage.buffer.BufferMgr
. Here is the code snippet:This may be a legacy code that used to prevent
ConcurrentModificationExeception
, but this became unnecessary as we updated the logic of the code in the past.The text was updated successfully, but these errors were encountered: