[pypy-commit] pypy new-jit-log: encode the offset into the core dump

plan_rich pypy.commits at gmail.com
Mon Mar 21 13:40:01 EDT 2016


Author: Richard Plangger <planrichi at 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:


More information about the pypy-commit mailing list