Skip to content

Conversation

@leonerd
Copy link
Contributor

@leonerd leonerd commented Mar 19, 2025

The (badly-named) PERL_MAGIC_symtab no longer uses the mg_obj field. It is only applied in one place (at time of writing, toke.c line 10711) with the obj field set to NULL. Therefore, there is no point having code in dump.c to print it if non-NULL, nor in sv.c to special-case setting a non-NULL value in sv_magicext().

  • This set of changes does not require a perldelta entry.

@Leont
Copy link
Contributor

Leont commented Mar 20, 2025

This seems to have been forgotten in c2b1997. With that context this change makes complete sense.

The (badly-named) PERL_MAGIC_symtab no longer uses the `mg_obj` field,
ever since it was reshaped by c2b1997

This magic is only applied in one place (at time of writing, toke.c line
10711) with the `obj` field set to NULL. Therefore, there is no point
having code in `dump.c` to print it if non-NULL, nor in `sv.c` to
special-case setting a non-NULL value in `sv_magicext()`.
@leonerd leonerd force-pushed the PERL_MAGIC_symtab-no-mg_obj branch from 46ee54a to 63ff8b3 Compare March 20, 2025 15:00
@leonerd
Copy link
Contributor Author

leonerd commented Mar 20, 2025

I edited the commit message to add the context of that previous commit. Thanks for the archaeology @Leont

@leonerd leonerd merged commit 514c4e2 into Perl:blead Mar 20, 2025
33 checks passed
@leonerd leonerd deleted the PERL_MAGIC_symtab-no-mg_obj branch March 20, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants