PCRE2\_JIT\_FREE\_UNUSED\_MEMORY(3) Library Functions Manual PCRE2\_JIT\_FREE\_UNUSED\_MEMORY(3)

# [NAME](#NAME)

PCRE2 - Perl-compatible regular expressions (revised API)

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;pcre2.h&gt;**

```
void pcre2_jit_free_unused_memory(pcre2_general_context *gcontext);
```

# [DESCRIPTION](#DESCRIPTION)

This function frees unused JIT executable memory. The argument is a general context, for custom memory management, or NULL for standard memory management. JIT memory allocation retains some memory in order to improve future JIT compilation speed. In low memory conditions, **pcre2\_jit\_free\_unused\_memory()** can be used to cause this memory to be freed.

There is a complete description of the PCRE2 native API in the **pcre2api** page and a description of the POSIX API in the **pcre2posix** page.

24 April 2020 PCRE2 10.49

---

Document: pcre2_jit_free_unused_memory(3) from pcre2 10.49-r1 (Chainguard OS)
Source: https://github.com/PCRE2Project/pcre2.git
