src/hotspot/share/gc/shared/memset_with_concurrent_readers.hpp
changeset 49712 9e059253786b
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49711:4a7addb5762c 49712:9e059253786b
    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