1// Copyright 2021 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "src/heap/cppgc/memory.h" 6 7#include <cstddef> 8 9#include "src/heap/cppgc/globals.h" 10 11namespace cppgc { 12namespace internal { 13 14void NoSanitizeMemset(void* address, char c, size_t bytes) { 15 volatile uint8_t* const base = static_cast<uint8_t*>(address); 16 for (size_t i = 0; i < bytes; ++i) { 17 base[i] = c; 18 } 19} 20 21} // namespace internal 22} // namespace cppgc 23