Author: Richard Plangger <[email protected]>
Branch: new-jit-log
Changeset: r83488:4a28028053f5
Date: 2016-04-01 11:54 +0200
http://bitbucket.org/pypy/pypy/changeset/4a28028053f5/
Log: do not release gil for two logger functions. they are called in
@rgc.no_release_gil
diff --git a/rpython/jit/metainterp/jitlog.py b/rpython/jit/metainterp/jitlog.py
--- a/rpython/jit/metainterp/jitlog.py
+++ b/rpython/jit/metainterp/jitlog.py
@@ -91,7 +91,7 @@
def log_jit_counter(self, struct):
if not self.cintf.jitlog_enabled():
- return EMPTY_TRACE_LOG
+ return
le_addr = encode_le_addr(struct.number)
# not an address (but a number) but it is a machine word
le_count = encode_le_addr(struct.i)
diff --git a/rpython/rlib/rvmprof/cintf.py b/rpython/rlib/rvmprof/cintf.py
--- a/rpython/rlib/rvmprof/cintf.py
+++ b/rpython/rlib/rvmprof/cintf.py
@@ -63,9 +63,11 @@
[], lltype.Void, compilation_info=eci)
jitlog_write_marked = rffi.llexternal("jitlog_write_marked",
[rffi.INT, rffi.CCHARP, rffi.INT],
- lltype.Void, compilation_info=eci)
+ lltype.Void, compilation_info=eci,
+ releasegil=False)
jitlog_enabled = rffi.llexternal("jitlog_enabled", [], rffi.INT,
- compilation_info=eci)
+ compilation_info=eci,
+ releasegil=False)
jitlog_teardown = rffi.llexternal("jitlog_teardown", [], lltype.Void,
compilation_info=eci)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit