comparison src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp @ 52321:31b159f30fb2

8180193: Make marking bitmap code available to other GCs Reviewed-by: shade, stefank
author rkennke
date Wed, 29 Aug 2018 20:15:09 +0200
parents 71c04702a3d5
children 9807daeb47c4
comparison
equal deleted inserted replaced
0:af113b6bbc93 1:6cc653b4ec2a
28 #include "utilities/macros.hpp" 28 #include "utilities/macros.hpp"
29 29
30 #include <stddef.h> 30 #include <stddef.h>
31 #include <string.h> 31 #include <string.h>
32 32
33 // Only used by concurrent collectors.
34 #if INCLUDE_ALL_GCS
35
36 // Fill a block of memory with value, like memset, but with the 33 // Fill a block of memory with value, like memset, but with the
37 // understanding that there may be concurrent readers of that memory. 34 // understanding that there may be concurrent readers of that memory.
38 void memset_with_concurrent_readers(void* to, int value, size_t size); 35 void memset_with_concurrent_readers(void* to, int value, size_t size);
39 36
40 #ifdef SPARC 37 #ifdef SPARC
48 ::memset(to, value, size); 45 ::memset(to, value, size);
49 } 46 }
50 47
51 #endif // End of target dispatch. 48 #endif // End of target dispatch.
52 49
53 #endif // INCLUDE_ALL_GCS
54
55 #endif // SRC_SHARE_VM_GC_SHARED_MEMSETWITHCONCURRENTREADERS_HPP 50 #endif // SRC_SHARE_VM_GC_SHARED_MEMSETWITHCONCURRENTREADERS_HPP