PIT testing of 6u5p got failures in nsk tests when runnning with EA and BiasedLocking.
Tests passed with EA or BiasedLocking switched off.
The test failed when trying exit the monitor after deoptimization
of the compiled method with eliminated lock of scalar replaced
When scalarized object is reallocated the mark word is set
to klass->prototype_header() by default. Which can have biased pattern.
But the lock should not be biased in order to safely move
the displaced mark word from the compiled frame
to the vframeArray and back to the interpreted frame.
# Internal Error (synchronizer.cpp:1803), pid=XXX, tid=XXX
# Error: guarantee(mid->header()->is_neutral(),"invariant")
I see the following tests fail with the same assertion: