When I call object.notifyAll() on a completely uncontented (possibly biased, if this is allowed for the current JVM) monitor, in particular if no threads are actually waiting on the monitor, does it cause monitor rebiasing and/or inflation?
Does calling object.notifyAll() cause lock rebiasing/inflation in Hotspot JVM?
302 Views Asked by leventov At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in JVM
- JVM is functioning very differently with same flags
- Heap size issue on migrating from Solr 5.0.0 to Solr 5.1.0
- Can't open eclipse with Windows 7 (doesn't see jdk jde)
- Can I import java libraries in HP ALM without Microsoft Java Virtual Machine?
- resin project, jdk8 has a high cpu load ,but jdk7 not
- Using multiple JVM languages in the same project
- Practical case JVM tunning to avoid full GC
- why does buckminster not resolve my passed JVM argument?
- Where to patch back the information gathered during program analysis
- Java 8 , JCE Unlimited Strength Policy and SSL Handshake over TLS
- Does the JVM limit the number of threads an Executor can run?
- With Swift open sourced, what would it take to have it running on the JVM?
- JVM ClassUnloadingWithConcurrentMark flag
- Ruby RJB can't create Java VM error
- Exposing whether an application is undergoing GC via UDP
Related Questions in SYNCHRONIZED
- Understanding Xcode crash message and @synchronized directive
- Synchronize of ScheduledFuture.cancel() method
- Java Multithreading - What Really Happens When Accessing A "Locked" Object?
- Why we cannot use synchronized keyword in an interface method declaration
- confused by synchronized usage
- JPanels not showing up, kinda
- git push succeeded, but remote repository is not updated or synchronized
- Why do we need to specify the lock for synchronized statements?
- Do operations on ThreadLocal have to be synchronized?
- Socket.io countdown synchronously?
- State of threads, locks, and conditions
- improper output of synchronization in java
- Should lock object be volatile (synchronized block, multiple instances of class)?
- Object.wait(0) and Condition.await() fail to return?
- Thread Sleep method behaviour in synchronized block
Related Questions in JVM-HOTSPOT
- How precisely do Java arrays use memory in HotSpot (i.e. how much slop)?
- Why is Java faster if it repeats the same code?
- Disable JRockit Optimzation per class
- How do I check assembly output of Java code?
- Understanding internal fragmentation properties of Hotspot JVM process
- Java 8 reserves minimum 1G for Metaspace despite (Max)MetaspaceSize
- What's this new column in -XX:+PrintCompilation output?
- Can OSR-compiled methods be used by a subsequent call?
- How the survivor size is calculated
- Dynamic Bytecode Instrumentation fails without any error
- JVMTI RetransformClasses() is taking a lot of time
- Is Ordinary Object Pointer a pointer or an object structure in HotSpot?
- weakCompareAndSwap vs compareAndSwap
- Hotspot JVM - G1GC Heap resizing issue
- Extremely long pause times for concurrent mode failure and promotion failure
Related Questions in BIASED-LOCKING
- How to interpret an instance's mark word?
- Does Vert.x have plans addressing the deprecation of biased locking in Java 15?
- Biased locking design decision
- Does Java ever rebias an individual lock
- Does calling object.notifyAll() cause lock rebiasing/inflation in Hotspot JVM?
- Where is object's hash code stored if biased-locking is enabled in HotSpot JVM?
- what is different between compiled frame and interpreted frame?
- Biased locking in java
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It causes biased lock revocation (biased -> thin state transfer) only.
Referring to hotspot source code (synchronizer.cpp):
Caller checks if lock is biased (and revokes it if necessary), then checks
mark->has_locker()(it's the same as "is monitor thin"). If so, then its wait-set is empty and fast-exit is performed without any inflation or other effects (is_lock_owned_checkperformed only to throwIllegalMonitorStateExceptionin case of illegal usages).Also note, that in Java 9 entry point for notify is
quick_notifyas part of JEP 143: Improve Contended Locking, but it performs same checks anyway.