8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux

Reviewed-by: stuefe, coleenp, roland
This commit is contained in:
Goetz Lindenmaier 2015-10-22 13:07:10 -04:00
parent f21d1afd70
commit 83b3b21342
40 changed files with 129 additions and 124 deletions

View file

@ -512,7 +512,7 @@ JvmtiEnvBase::is_thread_fully_suspended(JavaThread* thr, bool wait_for_suspend,
// 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 @@ JvmtiEnvBase::get_object_monitor_usage(JavaThread* calling_thread, jobject objec
// 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