Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cpplint errors with paddle/fluid/memory #9669

Closed
wants to merge 3 commits into from

Conversation

wangkuiyi
Copy link
Collaborator

No description provided.

Copy link
Contributor

@chengduoZH chengduoZH left a comment

Choose a reason for hiding this comment

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

There are many parameter mismatching cases, please make a double check.

return right_buddy(cache) != nullptr;
}

size_t MemoryBlock::index(const MetadataCache& cache) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

MemoryBlock::index(const MetadataCache& cache) does not match the definition.

}

void MemoryBlock::mark_as_free(MetadataCache& cache) {
void MemoryBlock::mark_as_free(MetadataCache* cache) {
// check for double free or corruption
PADDLE_ASSERT(type(cache) != FREE_CHUNK);
Copy link
Contributor

Choose a reason for hiding this comment

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

the parameter of type should not be a point.

@wangkuiyi
Copy link
Collaborator Author

Closing this PR because the work is too big that I had to split it into three PRs

@wangkuiyi wangkuiyi closed this Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants