File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/hotspot/share/memory/metaspace Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2020, 2025 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2020, 2026 , Oracle and/or its affiliates. All rights reserved.
33 * Copyright (c) 2020, 2022 SAP SE. All rights reserved.
44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55 *
@@ -88,7 +88,7 @@ void BlockTree::verify() const {
8888 MemRangeCounter counter;
8989
9090 // Verifies node ordering (n1 < n2 => word_size1 < word_size2),
91- // node vadility , and that the tree is balanced and not ill-formed.
91+ // node validity , and that the tree is balanced and not ill-formed.
9292 _tree.verify_self ([&](const TreeNode* tree_node) {
9393 const Node* n = Node::cast_to_node (tree_node);
9494
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2020, 2025 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2020, 2026 , Oracle and/or its affiliates. All rights reserved.
33 * Copyright (c) 2020 SAP SE. All rights reserved.
44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55 *
@@ -43,7 +43,7 @@ namespace metaspace {
4343// memory blocks themselves are the nodes, with the block size being the key.
4444//
4545// We store node pointer information in these blocks when storing them. That
46- // imposes a minimum size to the managed memory blocks (1 word )
46+ // imposes a minimum size to the managed memory blocks (1 MinWordSize )
4747//
4848// We want to manage many memory blocks of the same size, but we want
4949// to prevent the tree from blowing up and degenerating into a list. Therefore
@@ -89,8 +89,7 @@ class BlockTree: public CHeapObj<mtMetaspace> {
8989 Node* _next;
9090
9191 // Word size of node. Note that size cannot be larger than max metaspace size,
92- // so this could be very well a 32bit value (in case we ever make this a balancing
93- // tree and need additional space for weighting information).
92+ // so this could very well be a 32bit value.
9493 const size_t _word_size;
9594
9695 Node (size_t word_size) :
You can’t perform that action at this time.
0 commit comments