Closed GoogleCodeExporter closed 8 years ago
Yeah, I think you are right.
Ideally what I'd like to achieve is to have all the memory allocated by NVTT go
through the same allocator, a common request is to provide hooks for custom
memory allocation functions, see issue 106. This was there only to accomodate
requests like that in the future.
However, it seems that the overrides are affecting the whole program, not just
NVTT. I need to figure out how to solve that, but in the meantime disabling
this is probably the best way to go.
Original comment by cast...@gmail.com
on 29 Sep 2010 at 5:20
Here's something interesting that may explain the behavior you are seeing:
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#404
Recent C++ standards disallow the use of inline in the declaration of new and
delete. While that's supposed to be an error, I suspect gcc is silently
allowing it, but not treating the functions as inline. Instead it's exporting
the symbols and replacing them for the whole program, which was not the
intended behavior.
Anyway, I clearly need to comment that out. I'll figure out the solution
another time.
Original comment by cast...@gmail.com
on 1 Oct 2010 at 6:02
I've fixed this in trunk. Will merge the changes to the 2.0 branch shortly.
Original comment by cast...@gmail.com
on 6 Oct 2010 at 3:03
This issue was closed by revision r1172.
Original comment by cast...@gmail.com
on 28 Oct 2010 at 4:25
Original issue reported on code.google.com by
exc...@gmail.com
on 29 Sep 2010 at 1:54