-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loom Pinning: Manage J9VMThread->ownedMonitorCount
In order to support if a Continuation is pinned, ownedMonitorCount is - incremented when a monitor is successfully acquired; and - decremented when a monitor is successfully released. ownedMonitorCount is updated closer to the lockword modification. monitor entry points: 1. ObjectMonitor.hpp::inlineFastObjectMonitorEnter - inlineFastInitAndEnterMonitor: increment counter 2. ObjectMonitor.hpp::objectMonitorEnterNonBlocking - flat / lock reservation case: increment counter - spinOnFlatLock - inlineFastInitAndEnterMonitor: increment counter - spinOnTryEnter - inflated case: increment counter 3. ObjectMonitor.hpp::objectMonitorEnterBlocking: - inflated case: increment counter - inlineFastInitAndEnterMonitor: increment counter monitor exit points: 1. ObjectMonitor.hpp::inlineFastObjectMonitorExit: decrement counter 2. monhelpers.c::objectMonitorExit: decrement counter ownedMonitorCount will be reset when a Continuation is mounted and unmounted. Related: #15174 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
- Loading branch information
Showing
3 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters