Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1420

XMLPlatformUtils::makeMutex() creates mutex objects using the C++ runtime heap instead of using a MemoryManager instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • Utilities
    • None

    Description

      XMLPlatformUtils::makeMutex() needs to accept a MemoryManager instance as a parameter to use pluggable memory management. As it stands now, mutex objects on the various platforms are created using the C++ run-time heap. This is causing memory allocation issues and crashes in our application.

      I am preparing a patch, but it covers all platforms, so I won't be able to test every one of them.

      Attachments

        1. XMLHolder.hpp
          2 kB
          David N Bertoni
        2. XMLHolder.c
          1 kB
          David N Bertoni
        3. patch.txt
          99 kB
          David N Bertoni

        Activity

          People

            dbertoni David N Bertoni
            dbertoni David N Bertoni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: