]> gitweb.factorcode.org Git - factor.git/blob - vm/safepoints.hpp
c30afd5fcf56f5aad01798c4938d238876259484
[factor.git] / vm / safepoints.hpp
1 namespace factor
2 {
3
4 struct safepoint_state
5 {
6         cell fep_p;
7         profiling_sample_count sample_counts;
8
9         safepoint_state() :
10                 fep_p(false),
11                 sample_counts()
12         {
13         }
14
15         void handle_safepoint(factor_vm *parent, cell pc) volatile;
16
17         void enqueue_safepoint(factor_vm *parent) volatile;
18         void enqueue_samples(factor_vm *parent, cell samples, cell pc, bool foreign_thread_p) volatile;
19         void enqueue_fep(factor_vm *parent) volatile;
20 };
21
22 }