Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r75780:c90b8022a288
Date: 2015-02-09 12:46 +0200
http://bitbucket.org/pypy/pypy/changeset/c90b8022a288/

Log:    clean up the codemap in free()

diff --git a/rpython/jit/backend/llsupport/asmmemmgr.py 
b/rpython/jit/backend/llsupport/asmmemmgr.py
--- a/rpython/jit/backend/llsupport/asmmemmgr.py
+++ b/rpython/jit/backend/llsupport/asmmemmgr.py
@@ -61,6 +61,10 @@
                              self.jit_addr_map[jit_adr_stop:])
         self.jit_frame_depth_map = (self.jit_frame_depth_map[:jit_adr_start] +
                                     self.jit_frame_depth_map[jit_adr_stop:])
+        # fix up codemap
+        codemap_adr = bisect_tuple(self.jit_codemap, start)
+        self.jit_codemap = (self.jit_codemap[:codemap_adr] +
+                            self.jit_codemap[codemap_adr + 1:])
 
     def open_malloc(self, minsize):
         """Allocate at least minsize bytes.  Returns (start, stop)."""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to