diff --git a/src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp b/src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp index 2e48e438fc955..ce4738d784edc 100644 --- a/src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp +++ b/src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp @@ -268,7 +268,7 @@ class G1ConcurrentRefine::RemSetSamplingClosure : public G1HeapRegionClosure { size_t sampled_code_root_rs_length() const { return _sampled_code_root_rs_length; } }; -// Adjust the target length (in regions) of the young gen, based on the the +// Adjust the target length (in regions) of the young gen, based on the // current length of the remembered sets. // // At the end of the GC G1 determines the length of the young gen based on diff --git a/src/hotspot/share/gc/z/zLiveMap.inline.hpp b/src/hotspot/share/gc/z/zLiveMap.inline.hpp index 54589e45c4516..9a5529dac0428 100644 --- a/src/hotspot/share/gc/z/zLiveMap.inline.hpp +++ b/src/hotspot/share/gc/z/zLiveMap.inline.hpp @@ -222,7 +222,7 @@ inline BitMap::idx_t ZLiveMap::find_base_bit_in_segment(BitMap::idx_t start, Bit } // The bitmaps contain pairs of bits to deal with strongly marked vs only - // finalizable marked. Align down to get the the first bit position. + // finalizable marked. Align down to get the first bit position. return bit & ~BitMap::idx_t(1); } diff --git a/src/hotspot/share/gc/z/zRelocate.cpp b/src/hotspot/share/gc/z/zRelocate.cpp index 805044f9deb88..213452e8d05d5 100644 --- a/src/hotspot/share/gc/z/zRelocate.cpp +++ b/src/hotspot/share/gc/z/zRelocate.cpp @@ -669,9 +669,9 @@ class ZRelocateWork : public StackObj { // moved them over to the current bitmap. // // If the young generation runs multiple cycles while the old generation is - // relocating, then the first cycle will have consume the the old remset, + // relocating, then the first cycle will have consumed the old remset, // bits and moved associated objects to a new old page. The old relocation - // could find either the the two bitmaps. So, either it will find the original + // could find either of the two bitmaps. So, either it will find the original // remset bits for the page, or it will find an empty bitmap for the page. It // doesn't matter for correctness, because the young generation marking has // already taken care of the bits. @@ -865,7 +865,7 @@ class ZRelocateWork : public StackObj { start_in_place_relocation_prepare_remset(from_page); if (promotion) { - // Register the the promotion + // Register the promotion ZGeneration::young()->in_place_relocate_promote(from_page, to_page); ZGeneration::young()->register_in_place_relocate_promoted(from_page); } diff --git a/src/hotspot/share/gc/z/zUncoloredRoot.hpp b/src/hotspot/share/gc/z/zUncoloredRoot.hpp index e980bd70eb2db..c007176e5c273 100644 --- a/src/hotspot/share/gc/z/zUncoloredRoot.hpp +++ b/src/hotspot/share/gc/z/zUncoloredRoot.hpp @@ -51,7 +51,7 @@ // The zaddress_unsafe type is used to hold uncolored oops that the GC needs // to process before it is safe to use. E.g. the original object might have // been relocated and the address needs to be updated. The zaddress type -// denotes that this pointer refers the the correct address of the object. +// denotes that this pointer refers to the correct address of the object. class ZUncoloredRoot : public AllStatic { private: