The fix of:
8312174 missing JVMTI events from vthreads parked during JVMTI attach
enabled a mechanism to conditionally create a JvmtiThreadState with a call to function java_thread->get_jvmti_thread_state() lazily at the point when a JVMTI event is posted. It caused some event posting code to create JvmtiThreadState's even though the events have not been enabled. Using preliminary should_post_xxx function calls will fix this issue.
One example is vmtiExport::post_exception_throw(). Need to check if there are more such events.