diff -r c2d95df2c54e -r 7cbd1b2c139b hotspot/src/share/vm/prims/jvmtiEnvBase.cpp --- a/hotspot/src/share/vm/prims/jvmtiEnvBase.cpp Mon Oct 19 15:03:58 2015 +0200 +++ b/hotspot/src/share/vm/prims/jvmtiEnvBase.cpp Thu Oct 22 13:07:10 2015 -0400 @@ -512,7 +512,7 @@ // mean much better out of memory handling unsigned char * JvmtiEnvBase::jvmtiMalloc(jlong size) { - unsigned char* mem; + unsigned char* mem = NULL; jvmtiError result = allocate(size, &mem); assert(result == JVMTI_ERROR_NONE, "Allocate failed"); return mem; @@ -1032,7 +1032,7 @@ // implied else: entry_count == 0 } - jint nWant, nWait; + jint nWant = 0, nWait = 0; if (mon != NULL) { // this object has a heavyweight monitor nWant = mon->contentions(); // # of threads contending for monitor