From 73bcd3f241aa641935235753492ddfebebf9373f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 26 Jun 2023 17:24:40 -0600 Subject: [PATCH] [var] Adjust a few allocations to not clean space Since we immediately copy. --- src/hb-ot-var-common.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 520f41a8e..0c14af683 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -43,7 +43,7 @@ struct DeltaSetIndexMapFormat01 auto *out = c->start_embed (this); unsigned total_size = min_size + mapCount * get_width (); - HBUINT8 *p = c->allocate_size (total_size); + HBUINT8 *p = c->allocate_size (total_size, false); if (unlikely (!p)) return_trace (nullptr); hb_memcpy (p, this, HBUINT8::static_size * total_size); @@ -64,7 +64,7 @@ struct DeltaSetIndexMapFormat01 entryFormat = ((width-1)<<4)|(inner_bit_count-1); mapCount = output_map.length; - HBUINT8 *p = c->allocate_size (width * output_map.length); + HBUINT8 *p = c->allocate_size (width * output_map.length, false); if (unlikely (!p)) return_trace (false); for (unsigned int i = 0; i < output_map.length; i++) { @@ -437,7 +437,7 @@ struct byte_data_t { if (unlikely (!bytes.length || !bytes.arrayZ)) return; - char* ret = c->allocate_size (bytes.length); + char* ret = c->allocate_size (bytes.length, false); if (unlikely (!ret)) return; hb_memcpy (ret, bytes.arrayZ, bytes.length); }