After exit decode thread DetachCurrentThread from JVM
fix crash bug
add "extern" function declare
rename decode state callback