Manage the memory duration

The current memory duration is the memory duration that applies when the mi_alloc() or mi_zalloc() function allocates memory. These functions do not specify a memory duration for their allocation. Instead, they use the current memory duration for the memory they allocate.

By default, the current memory duration is the default memory duration. The default memory duration is PER_ROUTINE; that is, the database server marks the memory for reclamation when the UDR completes. Therefore, the mi_alloc() and mi_zalloc() functions allocate memory with a duration of PER_ROUTINE by default.

Subsequent sections provide the following information:
  • The DataBlade® API structures allocated in the current memory duration
  • How to change the current memory duration