Fix RTL linking of procedure properties.
authorAndy Wingo <wingo@pobox.com>
Sat, 9 Nov 2013 15:23:35 +0000 (16:23 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 9 Nov 2013 15:23:35 +0000 (16:23 +0100)
* module/system/vm/assembler.scm (link-procprops): Fix procedure
  property embedding in bytecode.

module/system/vm/assembler.scm

index b15a893..b2db73e 100644 (file)
@@ -1579,7 +1579,7 @@ it will be added to the GC roots at runtime."
     (filter-map (lambda (meta)
                   (let ((props (props-without-name-or-docstring meta)))
                     (and (pair? props)
-                         (cons (meta-low-pc meta) props))))
+                         (cons (* 4 (meta-low-pc meta)) props))))
                 (reverse (asm-meta asm))))
   (let* ((endianness (asm-endianness asm))
          (procprops (find-procprops))