Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48731

QMetaType ignores overridden memory allocators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.5.0
    • Core: Object Model
    • None

    Description

      QMetaType ignores overridden memory allocators when creating objects.
      This is very annoying, as it does not allow to use QVariable and Qt Property System for objects (or classes with fields) that must be aligned in memory (e.g. Eigen classes that use SSE).

      I found that it was broken in commit 3d575d4 by replacing `new T` to `new(operator new(size)) T` (Create to Construct at "new operator(size)").

      It turns 8 byte alignment instead of the 16 in my case, which could not be altered.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nierob Nierob
            starlight starlight
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes