Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1741:e3c5158f015b
Date: 2015-03-26 08:01 +0100
http://bitbucket.org/pypy/stmgc/changeset/e3c5158f015b/
Log: Improve the gdb tools, design them for stmgc specifically
diff --git a/c7/gdb/gdb_stm.py b/c7/gdb/old_gdb_stm.py
rename from c7/gdb/gdb_stm.py
rename to c7/gdb/old_gdb_stm.py
diff --git a/c7/stm/core.c b/c7/stm/core.c
--- a/c7/stm/core.c
+++ b/c7/stm/core.c
@@ -2,6 +2,11 @@
# error "must be compiled via stmgc.c"
#endif
+char *stm_object_pages;
+long _stm_segment_nb_pages = NB_PAGES;
+int _stm_nb_segments = NB_SEGMENTS;
+int _stm_psegment_ofs = (int)(uintptr_t)STM_PSEGMENT;
+
static void teardown_core(void)
{
diff --git a/c7/stm/core.h b/c7/stm/core.h
--- a/c7/stm/core.h
+++ b/c7/stm/core.h
@@ -232,7 +232,10 @@
TS_INEVITABLE,
};
-static char *stm_object_pages;
+extern char *stm_object_pages;
+extern long _stm_segment_nb_pages;
+extern int _stm_nb_segments;
+extern int _stm_psegment_ofs;
static int stm_object_pages_fd;
static stm_thread_local_t *stm_all_thread_locals = NULL;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit