8329358: Generational ZGC: Remove the unused method ZPointer::set_remset_bits

Reviewed-by: stefank, eosterlund
This commit is contained in:
Guoxiong Li 2024-04-02 10:14:04 +00:00
parent 3b582dff84
commit 8b934aab14
2 changed files with 2 additions and 10 deletions
src/hotspot/share/gc/z

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, 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
@ -248,7 +248,6 @@ public:
static zaddress uncolor(zpointer ptr);
static zaddress uncolor_store_good(zpointer ptr);
static zaddress_unsafe uncolor_unsafe(zpointer ptr);
static zpointer set_remset_bits(zpointer ptr);
static bool is_load_bad(zpointer ptr);
static bool is_load_good(zpointer ptr);

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, 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
@ -454,13 +454,6 @@ inline zaddress_unsafe ZPointer::uncolor_unsafe(zpointer ptr) {
return to_zaddress_unsafe(raw_addr >> ZPointer::load_shift_lookup(raw_addr));
}
inline zpointer ZPointer::set_remset_bits(zpointer ptr) {
uintptr_t raw_addr = untype(ptr);
assert(raw_addr != 0, "raw nulls should have been purged in promotion to old gen");
raw_addr |= ZPointerRemembered0 | ZPointerRemembered1;
return to_zpointer(raw_addr);
}
inline bool ZPointer::is_load_bad(zpointer ptr) {
return untype(ptr) & ZPointerLoadBadMask;
}