Skip to content

Commit

Permalink
Merge remote-tracking branch 'lilliput/JEP-450-temporary-fix-branch-2…
Browse files Browse the repository at this point in the history
…' into JDK-8305895-v4
  • Loading branch information
rkennke committed Sep 19, 2024
2 parents b25a4b6 + 945eb6f commit 0d8a923
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/compressedKlass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void CompressedKlassPointers::initialize(address addr, size_t len) {

} else {

// Traditional (non-compact) header mode)
// Traditional (non-compact) header mode
const uintptr_t unscaled_max = nth_bit(narrow_klass_pointer_bits());
const uintptr_t zerobased_max = nth_bit(narrow_klass_pointer_bits() + max_shift());

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/oops/compressedKlass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,5 @@ class CompressedKlassPointers : public AllStatic {
}

};

#endif // SHARE_OOPS_COMPRESSEDKLASS_HPP
12 changes: 4 additions & 8 deletions test/hotspot/gtest/metaspace/test_clms.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023 Red Hat, Inc. All rights reserved.
* Copyright (c) 2024 Red Hat, Inc. All rights reserved.
* Copyright (c) 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 @@ -184,12 +184,8 @@ class ClmsTester {
EXPECT_FREEBLOCKS_UNCHANGED(nca);
}
return bl;

} // end: is_class

else

{
// end: is_class
} else {
// Nonclass arena allocation.
// Allocation waste can happen:
// - if we allocate from nonclass freeblocks, the block remainder
Expand Down

0 comments on commit 0d8a923

Please sign in to comment.