Skip to content

Commit

Permalink
8329358: Generational ZGC: Remove the unused method ZPointer::set_rem…
Browse files Browse the repository at this point in the history
…set_bits

Reviewed-by: stefank, eosterlund
  • Loading branch information
lgxbslgx committed Apr 2, 2024
1 parent 3b582df commit 8b934aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/z/zAddress.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -248,7 +248,6 @@ class ZPointer : public AllStatic {
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);
Expand Down
9 changes: 1 addition & 8 deletions src/hotspot/share/gc/z/zAddress.inline.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

1 comment on commit 8b934aa

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.