A common problem is the device running out of global heap memory and
crashing due to a nullptr dereference when using the data sharing stack.
This explicitly checks that a nullptr was not returned by malloc when
debugging field 1 is enabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We should not make it an assert, or not one that uses the first bit of the debug field. We should add a new bit because this can be valid and properly handled by the user. That said, in the device runtime we could add ASSERT for this in various places that don't handle it otherwise.
Comment Actions
I guess this bit could be for extra runtime checks? Not sure what else we could put under that umbrella.
Comment Actions
make it a "common issues" bit and we put things in there as we go. Things that are not necessarily wrong or problematic but most often indicate a problem.