Skip to content

Commit

Permalink
Merge pull request #15824 from tajila/loom2
Browse files Browse the repository at this point in the history
Add missing increment in non-blocking enter
  • Loading branch information
babsingh authored Sep 6, 2022
2 parents b187f52 + 5527428 commit ab6952a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions runtime/vm/ObjectMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ spinOnFlatLock(J9VMThread *currentThread, j9objectmonitor_t volatile *lwEA, j9ob
if (lock == VM_ObjectMonitor::compareAndSwapLockword(currentThread, lwEA, lock, (j9objectmonitor_t)(UDATA)currentThread, false)) {
/* compare and swap succeeded */
VM_AtomicSupport::readBarrier();
#if JAVA_SPEC_VERSION >= 19
currentThread->ownedMonitorCount += 1;
#endif /* JAVA_SPEC_VERSION >= 19 */
rc = true;

/* Transition from Learning to Flat occurred so the Cancel Counter in the object's J9Class is incremented by 1. */
Expand Down
2 changes: 1 addition & 1 deletion test/functional/Java19andUp/playlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
-excludegroups $(DEFAULT_EXCLUDE); \
$(TEST_STATUS)
</command>
<platformRequirements>bits.64,^arch.ppc,^arch.390,^arch.arm,^arch.riscv,^os.zos,^os.sunos,^os.osx</platformRequirements>
<platformRequirements>bits.64,^arch.390,^arch.arm,^arch.riscv,^os.zos,^os.sunos,^os.osx</platformRequirements>
<levels>
<level>sanity</level>
</levels>
Expand Down

0 comments on commit ab6952a

Please sign in to comment.