]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: actually collect samples and add primitives...
authorJoe Groff <arcata@gmail.com>
Mon, 31 Oct 2011 06:42:36 +0000 (23:42 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 2 Nov 2011 20:23:10 +0000 (13:23 -0700)
vm/errors.cpp
vm/primitives.hpp

index 7ed28babba68195b1f182395efcfe39caeb8bbc9..870f8519588368b8c9bb1ee79fa64cde5db47788 100755 (executable)
@@ -177,6 +177,7 @@ void factor_vm::enqueue_safepoint_sample()
                FACTOR_ATOMIC_ADD(&safepoint_sample_count, 1);
                if (current_gc)
                        FACTOR_ATOMIC_ADD(&safepoint_gc_sample_count, 1);
+               code->guard_safepoint();
        }
 }
 
index 31845a2122e0bcafd78f9d125e4d79a9d70ae0f6..36de59d0898096cf4ab989b7c85c0e84b2cb565e 100644 (file)
@@ -37,6 +37,7 @@ namespace factor
        _(callstack_for) \
        _(callstack_to_array) \
        _(check_datastack) \
+        _(clear_samples) \
        _(clone) \
        _(code_blocks) \
        _(code_room) \
@@ -90,6 +91,7 @@ namespace factor
        _(ftell) \
        _(full_gc) \
        _(fwrite) \
+        _(get_samples) \
        _(identity_hashcode) \
        _(innermost_stack_frame_executing) \
        _(innermost_stack_frame_scan) \