C++ Logo

std-proposals

Advanced search

Re: [std-proposals] set_new_handler extension

From: Phil Bouchard <boost_at_[hidden]>
Date: Fri, 17 Feb 2023 12:00:25 -0500
On 2/17/23 11:54, Thiago Macieira wrote:
> On Friday, 17 February 2023 08:43:15 PST Phil Bouchard wrote:
>> Well despite what Jason said earlier, there are 15,500 hits for a search
>> engine search such as Google on the subject:
>> https://www.google.com/search?q=rtlfreeheap+crash
>
> This search is meaningless. It finds people reporting crashes that ended in
> RtlFreeHeap, not that RtlFreeHeap has a problem.
>
> I kept getting assigned the vast majority of pointer bugs in Qt because they
> ended with a null pointer consumption inside of the QBasicAtomicPointer class.
> But it wasn't a QBasicAtomicPointer bug; the bug had happened way before where
> a null pointer was dereferenced.

Well it doesn't matter because again when I use the GPU memory manager
then everything runs fine. I also use the atomic<> class to compare
pointers:

if (MyObject * p = pointer.exchange(nullptr))
    deallocate(p);

So my code of perfectly thread safe. So even if the search engine search
is meaningless, then I'm telling you directly right now from my short
experience on Windows.

I don't think bugs like that are acceptable and the fix is ultra-easy
anyways. So the costs / benefits is gainful IMHO.


Thanks,

-- 
Logo <https://www.fornux.com/>  
*Phil Bouchard*  facebook icon
<https://www.linkedin.com/in/phil-bouchard-5723a910/> 
CTO
T: (819) 328-4743
E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
8 rue de la Baie| Gatineau (Qc), J8T 3H3 Canada
Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les
documents l'accompagnant, sont destinés uniquement aux personnes
identifiées et peuvent contenir des informations privilégiées,
confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce
message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by
mistake please destroy all copies.

Received on 2023-02-17 17:00:26