From babb52a08361b00eb4bc6e2e109b1fdc198dbd59 Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Mon, 11 Nov 2024 14:21:21 +0000 Subject: [PATCH] 8343931: Removed unused code in CompressedKlassPointers::initialize_for_given_encoding Reviewed-by: chagedorn --- src/hotspot/share/oops/compressedKlass.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hotspot/share/oops/compressedKlass.cpp b/src/hotspot/share/oops/compressedKlass.cpp index 0cfc0e3c60b..f3c6fe92897 100644 --- a/src/hotspot/share/oops/compressedKlass.cpp +++ b/src/hotspot/share/oops/compressedKlass.cpp @@ -154,8 +154,6 @@ void CompressedKlassPointers::calc_lowest_highest_narrow_klass_id() { // set this encoding scheme. Used by CDS at runtime to re-instate the scheme used to pre-compute klass ids for // archived heap objects. void CompressedKlassPointers::initialize_for_given_encoding(address addr, size_t len, address requested_base, int requested_shift) { - address const end = addr + len; - if (len > max_klass_range_size()) { stringStream ss; ss.print("Class space size and CDS archive size combined (%zu) "