Description
The fix for JDK-8226250 checks the result of JavaThread::current() for NULL to see if this thread is attached to the VM or not. But this function will assert on a debug build when the result is NULL. Instead we should use Thread::current_or_null() if we expect a NULL result.