summary refs log tree commit diff
path: root/src/rt/rust_cc.h
blob: 2edab782d9c43c7f7f3e2611abbd5c42ba3a05c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Rust cycle collector. Temporary, but will probably stick around for some
// time until LLVM's GC infrastructure is more mature.

#ifndef RUST_CC_H
#define RUST_CC_H

struct rust_task;

namespace cc {

void do_cc(rust_task *task);

// performs a cycle coll then asserts that there is nothing left
void do_final_cc(rust_task *task);

void maybe_cc(rust_task *task);

}   // end namespace cc

#endif