Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1009:85aa3bce7a2d
Date: 2014-03-14 09:16 +0100
http://bitbucket.org/pypy/stmgc/changeset/85aa3bce7a2d/
Log: Fix
diff --git a/gil-c7/stmgc.h b/gil-c7/stmgc.h
--- a/gil-c7/stmgc.h
+++ b/gil-c7/stmgc.h
@@ -120,7 +120,8 @@
extern void stmcb_trace(struct object_s *, void (object_t **));
inline static object_t *stm_setup_prebuilt(object_t *preb) {
- preb->gil_flags |= _STM_GCFLAG_WRITE_BARRIER;
+ if (preb != NULL)
+ preb->gil_flags |= _STM_GCFLAG_WRITE_BARRIER;
return preb;
}
inline static object_t *stm_setup_prebuilt_weakref(object_t *preb) {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit