Author: Armin Rigo <[email protected]>
Branch:
Changeset: r475:edbd90784082
Date: 2013-08-14 19:23 +0200
http://bitbucket.org/pypy/stmgc/changeset/edbd90784082/
Log: Fix warnings
diff --git a/c4/extra.c b/c4/extra.c
--- a/c4/extra.c
+++ b/c4/extra.c
@@ -162,7 +162,7 @@
return 1;
/* the only possible case to still get True is if p2 == p1->h_original */
- return (p1 != NULL) && (p1->h_original == p2) &&
+ return (p1 != NULL) && (p1->h_original == (revision_t)p2) &&
!(p1->h_tid & GCFLAG_PREBUILT_ORIGINAL);
}
diff --git a/c4/stmgc.h b/c4/stmgc.h
--- a/c4/stmgc.h
+++ b/c4/stmgc.h
@@ -177,6 +177,9 @@
extern __thread revision_t stm_private_rev_num;
gcptr stm_DirectReadBarrier(gcptr);
gcptr stm_WriteBarrier(gcptr);
+gcptr stm_RepeatReadBarrier(gcptr);
+gcptr stm_ImmutReadBarrier(gcptr);
+gcptr stm_RepeatWriteBarrier(gcptr);
static const revision_t GCFLAG_PUBLIC_TO_PRIVATE = STM_FIRST_GCFLAG << 4;
static const revision_t GCFLAG_WRITE_BARRIER = STM_FIRST_GCFLAG << 5;
static const revision_t GCFLAG_MOVED = STM_FIRST_GCFLAG << 6;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit