]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: strings: don't check for non-deduplicable atoms in the parent
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:17:33 +0000 (18:17 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:17:33 +0000 (18:17 +0100)
commit343de78445289e7d85d5c7e40702d3d422ca6bad
tree774bef3398e187db9c9afb38ae78a67b7e5cbe09
parent3520fb4568c003b1cba32511fa25fa07e0cd3064
libctf: strings: don't check for non-deduplicable atoms in the parent

Callers of ctf_str_add_no_dedup_ref are indicating that they would like the
string they have added a reference to to appear in the current dict and not
be deduplicated into the parent.  This is true even if the string already
exists in the parent, so we should not check for strings in the parent and
reuse them in this case.
libctf/ctf-string.c