mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -422,7 +422,7 @@ int HashtableTextDump::scan_prefix(int* utf8_length) {
|
|||
|
||||
int HashtableTextDump::scan_string_prefix() {
|
||||
// Expect /[0-9]+: /
|
||||
int utf8_length;
|
||||
int utf8_length = 0;
|
||||
get_num(':', &utf8_length);
|
||||
if (*_p != ' ') {
|
||||
corrupted(_p, "Wrong prefix format for string");
|
||||
|
@ -433,13 +433,13 @@ int HashtableTextDump::scan_string_prefix() {
|
|||
|
||||
int HashtableTextDump::scan_symbol_prefix() {
|
||||
// Expect /[0-9]+ (-|)[0-9]+: /
|
||||
int utf8_length;
|
||||
int utf8_length = 0;
|
||||
get_num(' ', &utf8_length);
|
||||
if (*_p == '-') {
|
||||
_p++;
|
||||
if (*_p == '-') {
|
||||
_p++;
|
||||
}
|
||||
int ref_num;
|
||||
(void)get_num(':', &ref_num);
|
||||
get_num(':', &ref_num);
|
||||
if (*_p != ' ') {
|
||||
corrupted(_p, "Wrong prefix format for symbol");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue