From d68de02befb8dc099842497cefb23943c506079c Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Tue, 10 Jan 2023 14:26:32 +0000 Subject: [PATCH] 8299845: Remove obsolete comments in DirtyCardToOopClosure::get_actual_top Co-authored-by: Y. Srinivas Ramakrishna Reviewed-by: tschatzl, sjohanss --- src/hotspot/share/gc/shared/space.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hotspot/share/gc/shared/space.cpp b/src/hotspot/share/gc/shared/space.cpp index 9dbc7c98ce9..b77f6f6c1b3 100644 --- a/src/hotspot/share/gc/shared/space.cpp +++ b/src/hotspot/share/gc/shared/space.cpp @@ -58,10 +58,6 @@ HeapWord* DirtyCardToOopClosure::get_actual_top(HeapWord* top, // Otherwise, it is possible that the object starting on the dirty // card spans the entire card, and that the store happened on a // later card. Figure out where the object ends. - // Use the block_size() method of the space over which - // the iteration is being done. That space (e.g. CMS) may have - // specific requirements on object sizes which will - // be reflected in the block_size() method. top = top_obj + cast_to_oop(top_obj)->size(); } } else {