Remove special-casing of tagged pointers.
This partially reverts commit09b2b8a5ce. * src/alloc.c (mark_maybe_pointer): Remove special-casing of tagged pointers. After commit09d746dad3, modules no longer rely on tagged pointers.
This commit is contained in:
parent
ba2e3a8abb
commit
7e7d62ea5e
1 changed files with 2 additions and 11 deletions
13
src/alloc.c
13
src/alloc.c
|
|
@ -4863,17 +4863,8 @@ mark_maybe_pointer (void *p)
|
|||
VALGRIND_MAKE_MEM_DEFINED (&p, sizeof (p));
|
||||
#endif
|
||||
|
||||
if (sizeof (Lisp_Object) == sizeof (void *) || !HAVE_MODULES)
|
||||
{
|
||||
if (!maybe_lisp_pointer (p))
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* For the wide-int case, also mark emacs_value tagged pointers,
|
||||
which can be generated by emacs-module.c's value_to_lisp. */
|
||||
p = (void *) ((uintptr_t) p & ~((1 << GCTYPEBITS) - 1));
|
||||
}
|
||||
if (!maybe_lisp_pointer (p))
|
||||
return;
|
||||
|
||||
if (pdumper_object_p (p))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue