[DynInst_API:] [dyninst/dyninst] 7083f6: remove mallocs from the RTlib's os_malloc call whe...


Date: Wed, 08 Jun 2016 13:07:47 -0700
From: Bill Williams <bill@xxxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 7083f6: remove mallocs from the RTlib's os_malloc call whe...
  Branch: refs/heads/release9.2/bugs/rtheap_mmap_only
  Home:   https://github.com/dyninst/dyninst
  Commit: 7083f65035b5856caddb03976831f8383997247f
      https://github.com/dyninst/dyninst/commit/7083f65035b5856caddb03976831f8383997247f
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2016-06-08 (Wed, 08 Jun 2016)

  Changed paths:
    M dyninstAPI/src/dynProcess.C
    M dyninstAPI_RT/src/RTheap-linux.c
    M dyninstAPI_RT/src/RTheap.c
    M dyninstAPI_RT/src/RTposix.c

  Log Message:
  -----------
  remove mallocs from the RTlib's os_malloc call when we're on the mmap path


  Commit: 64413895c0a64504837713761dd1bd933755bd1b
      https://github.com/dyninst/dyninst/commit/64413895c0a64504837713761dd1bd933755bd1b
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2016-06-08 (Wed, 08 Jun 2016)

  Changed paths:
    M dyninstAPI_RT/src/RTheap-linux.c
    M dyninstAPI_RT/src/RTposix.c

  Log Message:
  -----------
  Fix mmap flags: MAP_32BIT is x86_64 only, and MAP_FIXED is inappropriate for this application


  Commit: b4fcfdff1229f184a8bf133bdc7d7f2315c52cf3
      https://github.com/dyninst/dyninst/commit/b4fcfdff1229f184a8bf133bdc7d7f2315c52cf3
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2016-06-08 (Wed, 08 Jun 2016)

  Changed paths:
    M dyninstAPI_RT/src/RTheap.c

  Log Message:
  -----------
  Cleanup: remove dangling free() on malloc path, and adjust heap allocations such that:

1) Usable size >= requested size
2) Heap data structure at end, not at beginning, of heap (so that user heaps start aligned, and so that we aren't grabbing a whole previous page regardless of requested size).


Compare: https://github.com/dyninst/dyninst/compare/7083f65035b5^...b4fcfdff1229
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 7083f6: remove mallocs from the RTlib's os_malloc call whe..., Bill Williams <=