|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. |
3 |
| - * Copyright (c) 2020, 2021 SAP SE. All rights reserved. |
| 2 | + * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. |
| 3 | + * Copyright (c) 2020, 2022 SAP SE. All rights reserved. |
4 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
5 | 5 | *
|
6 | 6 | * This code is free software; you can redistribute it and/or modify it
|
@@ -103,8 +103,6 @@ void RootChunkArea::split(chunklevel_t target_level, Metachunk* c, FreeChunkList
|
103 | 103 | DEBUG_ONLY(chunklevel::check_valid_level(target_level));
|
104 | 104 | assert(target_level > c->level(), "Wrong target level");
|
105 | 105 |
|
106 |
| - const chunklevel_t starting_level = c->level(); |
107 |
| - |
108 | 106 | while (c->level() < target_level) {
|
109 | 107 |
|
110 | 108 | log_trace(metaspace)("Splitting chunk: " METACHUNK_FULL_FORMAT ".", METACHUNK_FULL_FORMAT_ARGS(c));
|
@@ -199,8 +197,6 @@ Metachunk* RootChunkArea::merge(Metachunk* c, FreeChunkListVector* freelists) {
|
199 | 197 |
|
200 | 198 | log_trace(metaspace)("Attempting to merge chunk " METACHUNK_FORMAT ".", METACHUNK_FORMAT_ARGS(c));
|
201 | 199 |
|
202 |
| - const chunklevel_t starting_level = c->level(); |
203 |
| - |
204 | 200 | bool stop = false;
|
205 | 201 | Metachunk* result = NULL;
|
206 | 202 |
|
@@ -389,7 +385,6 @@ void RootChunkArea::verify() const {
|
389 | 385 |
|
390 | 386 | const Metachunk* c = _first_chunk;
|
391 | 387 | const MetaWord* expected_next_base = _base;
|
392 |
| - const MetaWord* const area_end = _base + word_size(); |
393 | 388 |
|
394 | 389 | while (c != NULL) {
|
395 | 390 | assrt_(c->is_free() || c->is_in_use(),
|
|
0 commit comments