Skip to content

delete AllocatorFacade destructor #18606

Merged
seiriosPlus merged 2 commits intoPaddlePaddle:developfrom
seiriosPlus:fix/core_dump_on_communicator
Jul 12, 2019
Merged

delete AllocatorFacade destructor #18606
seiriosPlus merged 2 commits intoPaddlePaddle:developfrom
seiriosPlus:fix/core_dump_on_communicator

Conversation

@seiriosPlus
Copy link
Collaborator

@seiriosPlus seiriosPlus commented Jul 12, 2019

修复#17900中, 由于python/c++析构顺序导致的Segmentation fault.

@seiriosPlus seiriosPlus changed the title delete memory allocation delete AllocatorFacade destructor Jul 12, 2019
@seiriosPlus seiriosPlus requested a review from sneaxiy July 12, 2019 05:45
// Pimpl. Make interface clean.
AllocatorFacade::AllocatorFacade() : m_(new AllocatorFacadePrivate()) {}
AllocatorFacade::~AllocatorFacade() { delete m_; }
AllocatorFacade::~AllocatorFacade() {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some comments on the reason why we remove delete m_.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@seiriosPlus seiriosPlus merged commit db212bb into PaddlePaddle:develop Jul 12, 2019
wozna pushed a commit to wozna/Paddle that referenced this pull request Jul 22, 2019
seiriosPlus added a commit to seiriosPlus/Paddle that referenced this pull request Aug 28, 2019
seiriosPlus added a commit that referenced this pull request Aug 29, 2019
* fix bug in Class MultiSlotDataGenerator's function _gen_str, test=develop (#18222)
* fix some bug when merge sparse embedding parameters, test=develop (#18223)
* fix communicator with pyreader (#18350)
* delete AllocatorFacade destructor  (#18606)
* fix distribute transpiler GRPC error code 4, RPC Deadline (#18984)
* merge pr #18441
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.

2 participants