Hi JC,
Just a couple of minor suggestions in ji05t001.cpp: 174 NSK_DISPLAY1("\nagent %s initializer: obtaining the JVMTI env ...\n", (indx==0)?"A":"B"); I think I like this better as two lines. 204 if ((err = jvmti[indx]->SetEventNotificationMode(JVMTI_ENABLE, 205 JVMTI_EVENT_VM_INIT, NULL)) != JVMTI_ERROR_NONE) { /* enable event globally */ If I had my way you'd be making a couple dozen changes to remove assignments from conditional expressions, but I've been shot down when suggesting this in the past because doing this is considered within the coding guidelines. However, when the conditional takes up two lines, it really does start to become too hard to read. I'd suggest assigning "err" before the "if". thanks, Chris On 9/12/18 11:45 AM, JC Beyler wrote:
|
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG and f... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG ... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_... Chris Plummer
- Re: RFR (M) 8210665: Clean up ... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG ... serguei.spit...@oracle.com