--- old/src/hotspot/share/runtime/basicLock.cpp 2018-07-04 16:48:47.913121587 +0200 +++ new/src/hotspot/share/runtime/basicLock.cpp 2018-07-04 16:48:47.185121597 +0200 @@ -61,6 +61,10 @@ // There are some subtle concurrency issues, however, and since the benefit is // is small (given the support for inflated fast-path locking in the fast_lock, etc) // we'll leave that optimization for another time. + if (obj->is_value()) { + // Ignore value types + return; + } if (displaced_header()->is_neutral()) { ObjectSynchronizer::inflate_helper(obj);