[pypy-commit] pypy vmprof: Add vmprof only on 64bit linux and blind fixes for ARM (which is a bit
fijal
noreply at buildbot.pypy.org
Wed Feb 4 12:18:31 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: vmprof
Changeset: r75698:aee43a736a67
Date: 2015-02-04 13:18 +0200
http://bitbucket.org/pypy/pypy/changeset/aee43a736a67/
Log: Add vmprof only on 64bit linux and blind fixes for ARM (which is a
bit future-only since we don't have 64bit ARM)
diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -35,9 +35,12 @@
"cStringIO", "thread", "itertools", "pyexpat", "_ssl", "cpyext", "array",
"binascii", "_multiprocessing", '_warnings', "_collections",
"_multibytecodec", "micronumpy", "_continuation", "_cffi_backend",
- "_csv", "cppyy", "_pypyjson", "_vmprof"
+ "_csv", "cppyy", "_pypyjson"
])
+if sys.platform.startswith('linux') and sys.maxint > 2147483647:
+ working_modules.add('_vmprof')
+
translation_modules = default_modules.copy()
translation_modules.update([
"fcntl", "time", "select", "signal", "_rawffi", "zlib", "struct", "_md5",
diff --git a/rpython/jit/backend/arm/assembler.py b/rpython/jit/backend/arm/assembler.py
--- a/rpython/jit/backend/arm/assembler.py
+++ b/rpython/jit/backend/arm/assembler.py
@@ -663,6 +663,7 @@
assert len(set(inputargs)) == len(inputargs)
self.setup(original_loop_token)
+ self.codemap.inherit_code_from_position(faildescr.adr_jump_offset)
descr_number = compute_unique_id(faildescr)
if log:
operations = self._inject_debugging_code(faildescr, operations,
@@ -883,8 +884,12 @@
self.datablockwrapper.done() # finish using cpu.asmmemmgr
self.datablockwrapper = None
allblocks = self.get_asmmemmgr_blocks(looptoken)
- return self.mc.materialize(self.cpu.asmmemmgr, allblocks,
+ size = self.mc.get_relative_pos()
+ res = self.mc.materialize(self.cpu.asmmemmgr, allblocks,
self.cpu.gc_ll_descr.gcrootmap)
+ self.cpu.asmmemmgr.register_codemap(
+ self.codemap.get_final_bytecode(res, size))
+ return res
def update_frame_depth(self, frame_depth):
baseofs = self.cpu.get_baseofs_of_frame_field()
More information about the pypy-commit
mailing list