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

Make channel.mark() return the offset and throw if there is an error #13312

Merged
merged 4 commits into from
Jun 28, 2019

Conversation

daviditen
Copy link
Member

@daviditen daviditen commented Jun 24, 2019

Update channel.mark() and channel._mark() to return the marked offset
and throw if there is an error.

Update test/release/examples/benchmarks/shootout/revcomp-fast.chpl to use
the returned offset instead of calling offset() directly.

Resolves #8943.

David Iten added 4 commits June 21, 2019 14:50
Update `channel.mark()` and `channel._mark()` to return the marked offset
and throw if there is an error.

Update test/release/examples/benchmarks/shootout/revcomp-fast.chpl to use
the returned offset instead of calling `offset()` directly.
I used `channel.offset()` instead of `this.offset()`.
Return variable, not a call to it.
Don't treat channel._mark's return as an error code - it's an offset now.
@daviditen
Copy link
Member Author

Passed Linux64 paratest.

@mppf mppf self-requested a review June 28, 2019 16:59
@mppf mppf mentioned this pull request Jun 28, 2019
16 tasks
Copy link
Member

@mppf mppf left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@daviditen
Copy link
Member Author

Thanks!

@daviditen daviditen merged commit 7c3560e into chapel-lang:master Jun 28, 2019
@daviditen daviditen deleted the mark-throw-error branch June 28, 2019 19:21
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.

Make channel.mark() throw and return offset()
2 participants