Author: Richard Plangger <planri...@gmail.com>
Branch: new-jit-log
Changeset: r83224:d96b7e680539
Date: 2016-03-21 18:39 +0100
http://bitbucket.org/pypy/pypy/changeset/d96b7e680539/

Log:    encode the offset into the core dump

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
@@ -178,7 +178,8 @@
             end_offset = ops_offset[op2]
 
         dump = self.mc.copy_core_dump(self.mc.absolute_addr(), start_offset)
-        self.logger.write_marked(MARK_ASM, dump)
+        offset = self.logger.encode_le_16bit(start_offset)
+        self.logger.write_marked(MARK_ASM, offset + dump)
 
     def var_to_str(self, arg):
         try:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to