mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux
Reviewed-by: stuefe, coleenp, roland
This commit is contained in:
parent
f21d1afd70
commit
83b3b21342
40 changed files with 129 additions and 124 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue