JVM associates a monitor with every object. These monitors have locks that are accessed by single thread at any time.
What is Lock Contention?
Lock Contention occurs when a thread tries to acquire a lock on object which is held by other thread.
As part of this feature, Java targets to improve the overall performance of contended Java object monitors. Most of the real world application get benefit from this improvement.
Following are the key areas targeted by this feature.
a. Fast Java monitor enter operations
b. Fast Java monitor exit operations
c. Fast Java monitor notify/notifyAll operations
d. Field reordering and cache line alignment
e. Speed up PlatformEvent::unpark()
Reference
https://openjdk.java.net/jeps/143
Previous Next Home
No comments:
Post a Comment