Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

core/exception: Use staticError when throwing Exception #3476

Merged
merged 1 commit into from May 28, 2021

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented May 18, 2021

Otherwise, an assert failure in a dtor (or anything GC-called) result in an InvalidMemoryOperationError.

Copy link
Contributor

@thewilsonator thewilsonator left a comment

Choose a reason for hiding this comment

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

I don't suppose you have a test case for this?

@Geod24
Copy link
Member Author

Geod24 commented May 18, 2021

Actually I can craft one, I'll try to get to it later today.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @Geod24!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + druntime#3476"

@Geod24 Geod24 force-pushed the no-alloc-in-dtor-lol branch 3 times, most recently from b42ba17 to 31c11eb Compare May 28, 2021 10:01
Otherwise, an assert failure in a dtor (or anything GC-called) result in an InvalidMemoryOperationError.
@Geod24
Copy link
Member Author

Geod24 commented May 28, 2021

Man I had forgotten how to Makefile, should be G2G now.

@dlang-bot dlang-bot merged commit 5660983 into dlang:stable May 28, 2021
@Geod24 Geod24 deleted the no-alloc-in-dtor-lol branch May 28, 2021 13:09
@Geod24
Copy link
Member Author

Geod24 commented Jun 1, 2021

Didn't realize there was an issue number for this: https://issues.dlang.org/show_bug.cgi?id=7349

@MoonlightSentinel
Copy link
Contributor

This PR apparently introduced a regression: https://issues.dlang.org/show_bug.cgi?id=22616

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants