--- old/src/share/vm/prims/jvmtiExport.cpp 2016-09-12 12:56:28.434486800 -0400 +++ new/src/share/vm/prims/jvmtiExport.cpp 2016-09-12 12:56:28.079007700 -0400 @@ -2407,7 +2407,9 @@ delete agent_lib; } + // Agent_OnAttach executed so completion status is JNI_OK st->print_cr("%d", result); + result = JNI_OK; } } return result;