Skip to content

Comments

fix a bug when data_ or diff_ is shared#5449

Open
constroy wants to merge 2 commits intoBVLC:masterfrom
constroy:patch-1
Open

fix a bug when data_ or diff_ is shared#5449
constroy wants to merge 2 commits intoBVLC:masterfrom
constroy:patch-1

Conversation

@constroy
Copy link

When data_ or diff_ is shared, capacity_ should be updated to the smaller one.
And the shared memory should be reallocated in Reshape().

Otherwise, the capacity_ will be invalid, and memory will be still shared after Reshape(). That's not the right behavior.

When data_ or diff_ is shared, capacity_ should be updated to the smaller one.
And the shared memory should be reallocated in Reshape().
@Noiredd
Copy link
Member

Noiredd commented Nov 2, 2017

Please try to rebase your PR onto the most recent master. Tests failed for seemingly unrelated reasons and we've had several updates to Travis since your original submission (e.g. #5973).
Consider squashing your commits while you're at it.

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