|
1 | 1 | /* |
2 | | - * Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2023, 2026, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * Copyright (c) 2013, 2020, Red Hat, Inc. All rights reserved. |
4 | 4 | * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. |
5 | 5 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
32 | 32 | #include "gc/shenandoah/shenandoahGeneration.hpp" |
33 | 33 | #include "gc/shenandoah/shenandoahHeap.inline.hpp" |
34 | 34 | #include "gc/shenandoah/shenandoahHeapRegion.hpp" |
35 | | -#include "gc/shenandoah/shenandoahHeapRegionSet.inline.hpp" |
36 | 35 | #include "gc/shenandoah/shenandoahMarkingContext.inline.hpp" |
37 | 36 | #include "gc/shenandoah/shenandoahOldGeneration.hpp" |
38 | 37 | #include "gc/shenandoah/shenandoahScanRemembered.inline.hpp" |
39 | 38 | #include "gc/shenandoah/shenandoahYoungGeneration.hpp" |
40 | 39 | #include "jfr/jfrEvents.hpp" |
41 | 40 | #include "memory/allocation.hpp" |
42 | 41 | #include "memory/iterator.inline.hpp" |
43 | | -#include "memory/resourceArea.hpp" |
44 | 42 | #include "memory/universe.hpp" |
45 | 43 | #include "oops/oop.inline.hpp" |
46 | 44 | #include "runtime/globals_extension.hpp" |
47 | 45 | #include "runtime/java.hpp" |
48 | | -#include "runtime/mutexLocker.hpp" |
49 | 46 | #include "runtime/os.hpp" |
50 | | -#include "runtime/safepoint.hpp" |
51 | 47 | #include "utilities/powerOfTwo.hpp" |
52 | 48 |
|
53 | 49 | size_t ShenandoahHeapRegion::RegionCount = 0; |
@@ -846,16 +842,7 @@ void ShenandoahHeapRegion::set_affiliation(ShenandoahAffiliation new_affiliation |
846 | 842 | p2i(top()), p2i(ctx->top_at_mark_start(this)), p2i(_update_watermark.load_relaxed()), p2i(ctx->top_bitmap(this))); |
847 | 843 | } |
848 | 844 |
|
849 | | -#ifdef ASSERT |
850 | | - { |
851 | | - size_t idx = this->index(); |
852 | | - HeapWord* top_bitmap = ctx->top_bitmap(this); |
853 | | - |
854 | | - assert(ctx->is_bitmap_range_within_region_clear(top_bitmap, _end), |
855 | | - "Region %zu, bitmap should be clear between top_bitmap: " PTR_FORMAT " and end: " PTR_FORMAT, idx, |
856 | | - p2i(top_bitmap), p2i(_end)); |
857 | | - } |
858 | | -#endif |
| 845 | + shenandoah_assert_clear_above_top(this); |
859 | 846 |
|
860 | 847 | if (region_affiliation == new_affiliation) { |
861 | 848 | return; |
|
0 commit comments