1.1 --- a/src/share/vm/prims/jvmtiEnvBase.cpp Thu Feb 18 16:15:28 2016 +0100 1.2 +++ b/src/share/vm/prims/jvmtiEnvBase.cpp Tue Mar 01 12:50:37 2016 +0530 1.3 @@ -511,7 +511,7 @@ 1.4 // mean much better out of memory handling 1.5 unsigned char * 1.6 JvmtiEnvBase::jvmtiMalloc(jlong size) { 1.7 - unsigned char* mem; 1.8 + unsigned char* mem = NULL; 1.9 jvmtiError result = allocate(size, &mem); 1.10 assert(result == JVMTI_ERROR_NONE, "Allocate failed"); 1.11 return mem; 1.12 @@ -1038,7 +1038,7 @@ 1.13 // implied else: entry_count == 0 1.14 } 1.15 1.16 - int nWant,nWait; 1.17 + int nWant = 0, nWait = 0; 1.18 if (mon != NULL) { 1.19 // this object has a heavyweight monitor 1.20 nWant = mon->contentions(); // # of threads contending for monitor