diff options
author | Armin Rigo <arigo@tunes.org> | 2016-07-03 16:34:08 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-07-03 16:34:08 +0200 |
commit | 6bf4ea2a4dc4ab8e98e129b9d308f9089d411dc1 (patch) | |
tree | 1f97f50553c44b5dbe5d1ace9e78808d4ce00519 /rpython/memory | |
parent | Next bug (diff) | |
download | pypy-6bf4ea2a4dc4ab8e98e129b9d308f9089d411dc1.tar.gz pypy-6bf4ea2a4dc4ab8e98e129b9d308f9089d411dc1.tar.bz2 pypy-6bf4ea2a4dc4ab8e98e129b9d308f9089d411dc1.zip |
in-progress: fixes the inconsistency in static pointers to raw
structures: the code containing directly a pointer would use the address
of the real structure in the current process; but if loading this
address from memory, we would instead see the old recorded address.
Diffstat (limited to 'rpython/memory')
-rw-r--r-- | rpython/memory/gctransform/boehm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpython/memory/gctransform/boehm.py b/rpython/memory/gctransform/boehm.py index ffe93b6f03..201d4cefe9 100644 --- a/rpython/memory/gctransform/boehm.py +++ b/rpython/memory/gctransform/boehm.py @@ -31,7 +31,8 @@ class BoehmGCTransformer(GCTransformer): fields = [("hash", lltype.Signed)] if translator and translator.config.translation.reverse_debugger: fields.append(("uid", lltype.SignedLongLong)) - self.HDR = lltype.Struct("header", *fields) + hints = {'hints': {'gcheader': True}} + self.HDR = lltype.Struct("header", *fields, **hints) HDRPTR = lltype.Ptr(self.HDR) if self.translator: |