Skip to content

IovArray.add(...) should check if buffer has memory address.#7774

Merged
normanmaurer merged 1 commit into
4.1from
iov_array_has_memoryaddress
Mar 13, 2018
Merged

IovArray.add(...) should check if buffer has memory address.#7774
normanmaurer merged 1 commit into
4.1from
iov_array_has_memoryaddress

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We currently not check if the buffer has a memory address and just assume this is the case if the nioBufferCount() == 1.

Modifications:

  • Check hasMemoryAddress() before trying to access it.
  • Add unit case.

Result:

More correct and robust code. Related to [#7752].

@normanmaurer
Copy link
Copy Markdown
Member Author

Also @ldaley

Motivation:

We currently not check if the buffer has a memory address and just assume this is the case if the nioBufferCount() == 1.

Modifications:

- Check hasMemoryAddress() before trying to access it.
- Add unit case.

Result:

More correct and robust code. Related to [#7752].
@normanmaurer normanmaurer force-pushed the iov_array_has_memoryaddress branch from 5882bce to 8260546 Compare March 10, 2018 19:05
Copy link
Copy Markdown
Member

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

LGTM

@ldaley
Copy link
Copy Markdown
Contributor

ldaley commented Mar 12, 2018

👍

@normanmaurer normanmaurer merged commit f6251c8 into 4.1 Mar 13, 2018
@normanmaurer normanmaurer added this to the 4.1.23.Final milestone Mar 13, 2018
@Scottmitch Scottmitch deleted the iov_array_has_memoryaddress branch April 4, 2018 20:10
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