All the inflating_thread != nullptr checks in inflate_impl can be removed and  current->is_Java_thread() can be asserted when LockingMode is LM_LIGHTWEIGHT.
            
- relates to
- 
                    JDK-8314225 SIGSEGV in JavaThread::is_lock_owned -           
- Resolved
 
-         
- 
                    JDK-8323724 Remove potential re-inflation from FastHashCode under LM_LIGHTWEIGHT -           
- Resolved
 
-