Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / gc / new-object.h
1 /* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 */
8
9 #if (defined (MLTON_GC_INTERNAL_FUNCS))
10
11 static inline pointer newObject (GC_state s, GC_header header,
12 size_t bytesRequested, bool allocInOldGen);
13 static inline GC_stack newStack (GC_state s, size_t reserved, bool allocInOldGen);
14 static GC_thread newThread (GC_state s, size_t stackSize);
15
16 static inline void setFrontier (GC_state s, pointer p, size_t bytes);
17
18 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */