https://bugs.kde.org/show_bug.cgi?id=476535

            Bug ID: 476535
           Summary: Difference in allocation size for
                    massif/tests/overloaded-new between clang++/libc++ and
                    g++/libstdc++
    Classification: Developer tools
           Product: valgrind
           Version: 3.22 GIT
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: massif
          Assignee: n...@valgrind.org
          Reporter: pjfl...@wanadoo.fr
  Target Milestone: ---

This allocation

    s*        pa1 = static_cast<s*>(operator new(sizeof(*pa1),
static_cast<std::align_val_t>(256U)));

causes this output with clang++/libc++

  5         16,216           16,216           16,000           216            0

and with g++/libstdc++

  5         16,248           16,248           16,000           248            0

(the standard library used shouldn't be a factor as replacement allocators are
used in the main source file).

Previously there were 32 bytes of extra-heap. I'd expect another 8 bytes for
admin, making 40, plus whatever the alignment adds. clang++ adds 176, g++ adds
208.

If this is being rounded up to the next multiple of 256 then I'd expect 96 to
get added.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to