Author: tobias@masterthesis-vm
Branch: c8-efficient-serial-execution
Changeset: r2025:39847b4aa093
Date: 2017-03-06 12:23 +0100
http://bitbucket.org/pypy/stmgc/changeset/39847b4aa093/
Log: Instrument write barrier slowpath
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -959,7 +959,9 @@
__attribute__((flatten))
void _stm_write_slowpath(object_t *obj) {
+ start_timer()
write_slowpath_common(obj, /* mark_card */ false);
+ stop_timer_and_publish(STM_DURATION_WRITE_BARRIER)
}
diff --git a/c8/stm/core.h b/c8/stm/core.h
--- a/c8/stm/core.h
+++ b/c8/stm/core.h
@@ -15,6 +15,7 @@
#include <signal.h>
#include <stdbool.h>
#include "list.h"
+#include "timing.h"
/************************************************************/
diff --git a/c8/stmgc.c b/c8/stmgc.c
--- a/c8/stmgc.c
+++ b/c8/stmgc.c
@@ -22,6 +22,7 @@
#include "stm/detach.h"
#include "stm/hashtable.h"
#include "stm/queue.h"
+#include "stm/timing.h"
#include "stm/misc.c"
#include "stm/list.c"
diff --git a/c8/stmgc.h b/c8/stmgc.h
--- a/c8/stmgc.h
+++ b/c8/stmgc.h
@@ -642,7 +642,6 @@
the given position and with the given maximum length. */
typedef int (*stm_expand_marker_fn)(char *seg_base, stm_loc_marker_t *marker,
char *output, int output_size);
-/* TODO generalize expand function */
int stm_set_timing_log(const char *profiling_file_name, int fork_mode,
stm_expand_marker_fn expand_marker);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit