]> gitweb.factorcode.org Git - factor.git/blob - vm/safepoints.hpp
VM: trying to simplify record_sample and the profiling_sample constructor
[factor.git] / vm / safepoints.hpp
1 namespace factor {
2
3 struct safepoint_state {
4   cell fep_p;
5   profiling_sample_count sample_counts;
6
7   safepoint_state() : fep_p(false), sample_counts() {}
8
9   void handle_safepoint(factor_vm* parent, cell pc) volatile;
10
11   void enqueue_samples(factor_vm* parent, cell samples, cell pc,
12                        bool foreign_thread_p) volatile;
13   void enqueue_fep(factor_vm* parent) volatile;
14 };
15
16 }