Wed, 19 Oct 2016 15:22:23 +0800
#4659 C2: Fixed a performance bug, causing many unlock operations to go through slow path.
ObjectMonitor::owner_offset_in_bytes is a pointer to owning thread.
$ stress -c 100 -i 10
$ time java SSLEngineDeadlock
Before the patch:
real 0m29.566s
user 0m38.156s
sys 0m1.590s
After the patch:
real 0m26.213s
user 0m34.996s
sys 0m1.668s
The improvement is nearly 13%.
aoqi1986@22 | 1 | f90c822e73f8f30ebfc930bdffc6263a99aec49f jdk8u25-b17 |
aoqi1986@23 | 2 | 2d8a650513c2c3e6717fcbfe5d4f12abee5ff96b mips64-jdk8u25-b17-rc1 |
aoqi1986@24 | 3 | afa196fe1bf669c34fe9acb7ebb31aabc8f0437a mips64-jdk8u25-b17-rc2 |