Author: Armin Rigo <[email protected]>
Branch: portable-threadlocal
Changeset: r74642:b3923721d666
Date: 2014-11-22 22:02 +0100
http://bitbucket.org/pypy/pypy/changeset/b3923721d666/
Log: add comments
diff --git a/rpython/translator/c/gc.py b/rpython/translator/c/gc.py
--- a/rpython/translator/c/gc.py
+++ b/rpython/translator/c/gc.py
@@ -71,12 +71,19 @@
return ''
def OP_GC_THREAD_RUN(self, funcgen, op):
+ # The gc transformer leaves this operation in the graphs
+ # in all cases except with framework+shadowstack. In that
+ # case the operation is removed because redundant with
+ # rthread.get_or_make_ident().
return '{ char *r; OP_THREADLOCALREF_MAKE(r); (void)r; } '
def OP_GC_THREAD_START(self, funcgen, op):
return ''
def OP_GC_THREAD_DIE(self, funcgen, op):
+ # The gc transformer leaves this operation in the graphs
+ # (but may insert a call to a gcrootfinder-specific
+ # function just before).
return 'RPython_ThreadLocals_ThreadDie();'
def OP_GC_THREAD_BEFORE_FORK(self, funcgen, op):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit