From db903e5748e927c285f72e1fd3b9156bfd49de29 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Fri, 6 Apr 2018 11:37:34 +0200 Subject: [PATCH] 8201213: Remove INCLUDE_ALL_GCS from memset_with_concurrent_readers Reviewed-by: kbarrett --- .../cpu/sparc/memset_with_concurrent_readers_sparc.cpp | 4 ---- .../share/gc/shared/memset_with_concurrent_readers.hpp | 5 ----- 2 files changed, 9 deletions(-) diff --git a/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp b/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp index e442d8f9c41..19871c6ab86 100644 --- a/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp +++ b/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp @@ -31,8 +31,6 @@ #include "utilities/globalDefinitions.hpp" #include "utilities/macros.hpp" -#if INCLUDE_ALL_GCS - // An implementation of memset, for use when there may be concurrent // readers of the region being stored into. // @@ -156,5 +154,3 @@ void memset_with_concurrent_readers(void* to, int value, size_t size) { // Fill any partial word suffix. Also the prefix if size < BytesPerWord. fill_subword(to, end, value); } - -#endif // INCLUDE_ALL_GCS diff --git a/src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp b/src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp index 4d7dc2b276f..c50365e8b42 100644 --- a/src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp +++ b/src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp @@ -30,9 +30,6 @@ #include #include -// Only used by concurrent collectors. -#if INCLUDE_ALL_GCS - // Fill a block of memory with value, like memset, but with the // understanding that there may be concurrent readers of that memory. void memset_with_concurrent_readers(void* to, int value, size_t size); @@ -50,6 +47,4 @@ inline void memset_with_concurrent_readers(void* to, int value, size_t size) { #endif // End of target dispatch. -#endif // INCLUDE_ALL_GCS - #endif // SRC_SHARE_VM_GC_SHARED_MEMSETWITHCONCURRENTREADERS_HPP