Stream: git-cranelift

Topic: cranelift / PR #1392 Add null pointer check for SimpleJit...


view this post on Zulip GitHub (Feb 14 2020 at 04:24):

timClicks opened PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 14 2020 at 04:24):

timClicks edited PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 14 2020 at 04:24):

timClicks edited PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 14 2020 at 04:24):

timClicks edited PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 14 2020 at 04:29):

timClicks updated PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Feb 24 2020 at 09:31):

bnjbvr requested bnjbvr for a review on PR #1392.

view this post on Zulip GitHub (Feb 24 2020 at 09:33):

bnjbvr submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:33):

bnjbvr created PR Review Comment:

nit: can you tweak this doc line to tell something like "Panics whenever any symbol pointer is NULL."?

view this post on Zulip GitHub (Feb 24 2020 at 09:33):

bnjbvr submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:41):

bjorn3 submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:41):

bjorn3 created PR Review Comment:

Please add an expected panic message: https://doc.rust-lang.org/reference/attributes/testing.html?highlight=should_panic#the-should_panic-attribute

view this post on Zulip GitHub (Feb 24 2020 at 09:41):

bjorn3 submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:45):

timClicks submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:45):

timClicks created PR Review Comment:

Will do :)

view this post on Zulip GitHub (Feb 24 2020 at 09:45):

timClicks submitted PR Review.

view this post on Zulip GitHub (Feb 24 2020 at 09:45):

timClicks created PR Review Comment:

Okay, sure thing.

view this post on Zulip GitHub (Feb 29 2020 at 09:55):

timClicks updated PR #1392 from mark-symbols-unsafe to master:

This commit marks provides the SimpleJitBuilder.symbol() and SimpleJitBuilder.symbols() methods as unsafe, as markers to those embedding the crate. It also includes a null pointer assert! to abort illegal use of the methods.

As a driveby, the commit rewrites symbols() in terms of symbol(), removing some code duplication.

<!-- Please ensure all communication adheres to the code of conduct. -->

view this post on Zulip GitHub (Jun 26 2020 at 13:19):

tschneidereit closed without merge PR #1392.


Last updated: Dec 23 2024 at 13:07 UTC