Skip to content

Conversation

@davidlt
Copy link
Contributor

@davidlt davidlt commented Jun 6, 2017

If a class/struct has virtual method it should also contain a virtual
dtor. This is important if one uses allocator (tcmalloc, jemalloc) with
C++14 sized deallocation. It's needed to provide a proper object size
to deallocation function.

We found that jemalloc (dev branch) tends to deadlock if wrong object
size is provided to deallocation function.

Patch is just as precaution.

Signed-off-by: David Abdurachmanov [email protected]

If a class/struct has virtual method it should also contain a virtual
dtor. This is important if one uses allocator (tcmalloc, jemalloc) with
C++14 sized deallocation. It's needed to provide a proper object size
to deallocation function.

We found that jemalloc (dev branch) tends to deadlock if wrong object
size is provided to deallocation function.

Patch is just as precaution.

Signed-off-by: David Abdurachmanov <[email protected]>
@phsft-bot
Copy link

Can one of the admins verify this patch?

@pcanal
Copy link
Member

pcanal commented Jun 6, 2017

@phsft-bot build

@phsft-bot
Copy link

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with CMake flags -Dvc=OFF -Dimt=ON -Dccache=ON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants