8079825: Uninitialised variable in hotspot/src/share/vm & cpu/x86/vm (runtime)
Initialized local variables in classFileParser.cpp and rframe.cpp Reviewed-by: dholmes, minqi
This commit is contained in:
parent
b02b2c4d5b
commit
84ff1787b7
@ -2023,10 +2023,10 @@ methodHandle ClassFileParser::parse_method(bool is_interface,
|
|||||||
bool lvt_allocated = false;
|
bool lvt_allocated = false;
|
||||||
u2 max_lvt_cnt = INITIAL_MAX_LVT_NUMBER;
|
u2 max_lvt_cnt = INITIAL_MAX_LVT_NUMBER;
|
||||||
u2 max_lvtt_cnt = INITIAL_MAX_LVT_NUMBER;
|
u2 max_lvtt_cnt = INITIAL_MAX_LVT_NUMBER;
|
||||||
u2* localvariable_table_length;
|
u2* localvariable_table_length = NULL;
|
||||||
u2** localvariable_table_start;
|
u2** localvariable_table_start = NULL;
|
||||||
u2* localvariable_type_table_length;
|
u2* localvariable_type_table_length = NULL;
|
||||||
u2** localvariable_type_table_start;
|
u2** localvariable_type_table_start = NULL;
|
||||||
int method_parameters_length = -1;
|
int method_parameters_length = -1;
|
||||||
u1* method_parameters_data = NULL;
|
u1* method_parameters_data = NULL;
|
||||||
bool method_parameters_seen = false;
|
bool method_parameters_seen = false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -81,7 +81,7 @@ DeoptimizedRFrame::DeoptimizedRFrame(frame fr, JavaThread* thread, RFrame*const
|
|||||||
: InterpretedRFrame(fr, thread, callee) {}
|
: InterpretedRFrame(fr, thread, callee) {}
|
||||||
|
|
||||||
RFrame* RFrame::new_RFrame(frame fr, JavaThread* thread, RFrame*const callee) {
|
RFrame* RFrame::new_RFrame(frame fr, JavaThread* thread, RFrame*const callee) {
|
||||||
RFrame* rf;
|
RFrame* rf = NULL;
|
||||||
int dist = callee ? callee->distance() : -1;
|
int dist = callee ? callee->distance() : -1;
|
||||||
if (fr.is_interpreted_frame()) {
|
if (fr.is_interpreted_frame()) {
|
||||||
rf = new InterpretedRFrame(fr, thread, callee);
|
rf = new InterpretedRFrame(fr, thread, callee);
|
||||||
@ -93,8 +93,10 @@ RFrame* RFrame::new_RFrame(frame fr, JavaThread* thread, RFrame*const callee) {
|
|||||||
} else {
|
} else {
|
||||||
assert(false, "Unhandled frame type");
|
assert(false, "Unhandled frame type");
|
||||||
}
|
}
|
||||||
|
if (rf != NULL) {
|
||||||
rf->set_distance(dist);
|
rf->set_distance(dist);
|
||||||
rf->init();
|
rf->init();
|
||||||
|
}
|
||||||
return rf;
|
return rf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user