Files
binutils-gdb/gdbsupport/gdb-hashtab.h
Tom Tromey 9f71296fda Remove hashtab_obstack_allocate
I think that hashtabs should never be obstack-allocated.  In the past
this was convenient sometimes, because any new data structure needed a
corresponding cleanup.  However, with the switch to C++, resource
management has become much simpler; for example, a local variable can
simply be of type htab_up rather than hashtab_t, and the problem is
solved.

This patch removes hashtab_obstack_allocate to try to prevent this
anti-pattern from being used again.
2024-06-24 09:11:30 -06:00

1.3 KiB