8210235: JvmtiTrace::safe_get_current_thread_name is unsafe in debug builds

Use Thread::current_or_null and handle NULL result.

Reviewed-by: coleenp
1 file changed