OpenJDK / panama / dev
changeset 62190:e1d256cea4d0
8245030: CardTable::precleaned_card is unused
Reviewed-by: lkorinth, kbarrett
Contributed-by: Albert Yang <albert.m.yang@oracle.com>
author | lkorinth |
---|---|
date | Thu, 16 Jul 2020 14:48:38 +0200 |
parents | da5672a06953 |
children | c0a73a684c3f |
files | src/hotspot/share/gc/shared/cardTable.hpp src/hotspot/share/gc/shared/cardTableRS.hpp |
diffstat | 2 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/cardTable.hpp Thu Jul 16 08:29:11 2020 -0400 +++ b/src/hotspot/share/gc/shared/cardTable.hpp Thu Jul 16 14:48:38 2020 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -105,9 +105,8 @@ clean_card = (CardValue)-1, dirty_card = 0, - precleaned_card = 1, - last_card = 2, - CT_MR_BS_last_reserved = 4 + last_card = 1, + CT_MR_BS_last_reserved = 2 }; // a word's worth (row) of clean card values @@ -239,7 +238,6 @@ static CardValue clean_card_val() { return clean_card; } static CardValue dirty_card_val() { return dirty_card; } - static CardValue precleaned_card_val() { return precleaned_card; } static intptr_t clean_card_row_val() { return clean_card_row; } // Card marking array base (adjusted for heap low boundary)
--- a/src/hotspot/share/gc/shared/cardTableRS.hpp Thu Jul 16 08:29:11 2020 -0400 +++ b/src/hotspot/share/gc/shared/cardTableRS.hpp Thu Jul 16 14:48:38 2020 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -150,7 +150,7 @@ // dirty and precleaned are equivalent wrt younger_refs_iter. static bool card_is_dirty_wrt_gen_iter(CardValue cv) { - return cv == dirty_card || cv == precleaned_card; + return cv == dirty_card; } // Returns "true" iff the value "cv" will cause the card containing it