From b8ae11e99b99866888ad090c98c96e6d0c33a3c9 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Wed, 29 May 2024 06:41:53 +0000 Subject: [PATCH] 8332960: ubsan: classListParser.hpp:159:12: runtime error: load of value 2101478704, which is not a valid value for type 'ParseMode' Reviewed-by: dholmes, mdoerr --- src/hotspot/share/cds/classListParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/cds/classListParser.cpp b/src/hotspot/share/cds/classListParser.cpp index 79119a997de..4455dd7db1b 100644 --- a/src/hotspot/share/cds/classListParser.cpp +++ b/src/hotspot/share/cds/classListParser.cpp @@ -59,7 +59,8 @@ ClassListParser::ClassListParser(const char* file, ParseMode parse_mode) : _classlist_file(file), _id2klass_table(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE), _file_input(do_open(file), /* need_close=*/true), - _input_stream(&_file_input) { + _input_stream(&_file_input), + _parse_mode(parse_mode) { log_info(cds)("Parsing %s%s", file, parse_lambda_forms_invokers_only() ? " (lambda form invokers only)" : ""); if (!_file_input.is_open()) { @@ -70,7 +71,6 @@ ClassListParser::ClassListParser(const char* file, ParseMode parse_mode) : _token = _line = nullptr; _interfaces = new (mtClass) GrowableArray(10, mtClass); _indy_items = new (mtClass) GrowableArray(9, mtClass); - _parse_mode = parse_mode; // _instance should only be accessed by the thread that created _instance. assert(_instance == nullptr, "must be singleton");