Commit 57bd9a35 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid assertion violations in compact_font_cache_entry

* src/alloc.c (compact_font_cache_entry): Don't use VECTORP to
avoid assertion violation in ASIZE.  (Bug#22263)
parent 88e2de23
......@@ -5346,7 +5346,10 @@ compact_font_cache_entry (Lisp_Object entry)
/* Consider OBJ if it is (font-spec . [font-entity font-entity ...]). */
if (CONSP (obj) && GC_FONT_SPEC_P (XCAR (obj))
&& VECTORP (XCDR (obj)))
/* Don't use VECTORP here, as that calls ASIZE, which could
hit assertion violation during GC. */
&& ! (gc_asize (XCDR (obj)) & PSEUDOVECTOR_FLAG)))
ptrdiff_t i, size = gc_asize (XCDR (obj));
Lisp_Object obj_cdr = XCDR (obj);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment