Skip to content

Commit 3d849bc

Browse files
committed
Add comment about lock counts and monitors.
1 parent d33d687 commit 3d849bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/core/mutex/ConditionVariableNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void waitInternal(RubyConditionVariable conditionVariable, ReentrantLock
103103
// If there is an interrupt, it should be consumed by condition.await() and the Ruby Thread sleep status
104104
// must imply being ready to be interrupted by Thread#{run,wakeup}.
105105
condLock.lock();
106-
int holdCount = 0;
106+
int holdCount = 0; // can be > 1 for MonitorMixin
107107
try {
108108
while (mutexLock.isHeldByCurrentThread()) {
109109
mutexLock.unlock();

0 commit comments

Comments
 (0)