tests.h 618 B

12345678910111213141516171819
  1. // Copyright 2019 The Chromium 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. #ifndef TOOLS_CLANG_STACK_MAPS_TESTS_H_
  5. #define TOOLS_CLANG_STACK_MAPS_TESTS_H_
  6. // Initialises the GC by setting up the heap and marking top of stack so the
  7. // gc knows where to stop during walking.
  8. extern void InitGC();
  9. // Calls the collector, which will move the underlying heap objects and update
  10. // pointer values on the stack.
  11. extern "C" void GC();
  12. // Frees all heap memory
  13. extern void TeardownGC();
  14. #endif // TOOLS_CLANG_STACK_MAPS_TESTS_H_