Uploaded image for project: ' Swift for TensorFlow'
  1. Swift for TensorFlow
  2. TF-67

[AD] BumpPtrAllocating some classes that have SmallBitVector fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: Autodiff
    • Labels:

      Description

      For example: https://github.com/apple/swift/blob/40624f59093f01979496094bb393f9568249ad39/lib/SIL/SILFunction.cpp#L76

      And I'm about do send out a PR that does this in another place, which is what made me notice.

      I believe that this technically could cause a memory leak because the BumpPtrAllocator never calls the destructor that frees up any heap memory that SmallBitVector decides to allocate.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcrasi Marc Rasi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: