Lines Matching refs:mm

34 # error mm is not thread-safe
52 MM *mm; member
89 nhash = mm_calloc(data->mm, nmax + 1, sizeof(*data->hash)); in hash_split()
104 mm_free(data->mm, data->hash); in hash_split()
115 sd = mm_malloc(data->mm, sizeof(ps_sd) + ZSTR_LEN(key)); in ps_sd_new()
118 …php_error_docref(NULL, E_WARNING, "mm_malloc failed, avail %ld, err %s", mm_available(data->mm), m… in ps_sd_new()
167 mm_free(data->mm, sd->data); in ps_sd_destroy()
171 mm_free(data->mm, sd); in ps_sd_destroy()
218 PS_MOD_SID(mm)
226 data->mm = mm_create(0, path); in ps_mm_initialize()
227 if (!data->mm) { in ps_mm_initialize()
233 data->hash = mm_calloc(data->mm, data->hash_max + 1, sizeof(ps_sd *)); in ps_mm_initialize()
235 mm_destroy(data->mm); in ps_mm_initialize()
260 mm_free(data->mm, data->hash); in ps_mm_destroy()
261 mm_destroy(data->mm); in ps_mm_destroy()
322 PS_OPEN_FUNC(mm) in PS_OPEN_FUNC() argument
334 PS_CLOSE_FUNC(mm) in PS_CLOSE_FUNC() argument
341 PS_READ_FUNC(mm) in PS_READ_FUNC() argument
347 mm_lock(data->mm, MM_LOCK_RD); in PS_READ_FUNC()
374 mm_unlock(data->mm); in PS_READ_FUNC()
379 PS_WRITE_FUNC(mm) in PS_WRITE_FUNC() argument
384 mm_lock(data->mm, MM_LOCK_RW); in PS_WRITE_FUNC()
394 if (data->mm) { in PS_WRITE_FUNC()
395 mm_free(data->mm, sd->data); in PS_WRITE_FUNC()
398 sd->data = mm_malloc(data->mm, sd->alloclen); in PS_WRITE_FUNC()
413 mm_unlock(data->mm); in PS_WRITE_FUNC()
418 PS_DESTROY_FUNC(mm) in PS_DESTROY_FUNC() argument
423 mm_lock(data->mm, MM_LOCK_RW); in PS_DESTROY_FUNC()
430 mm_unlock(data->mm); in PS_DESTROY_FUNC()
435 PS_GC_FUNC(mm) in PS_GC_FUNC() argument
449 mm_lock(data->mm, MM_LOCK_RW); in PS_GC_FUNC()
463 mm_unlock(data->mm); in PS_GC_FUNC()
468 PS_CREATE_SID_FUNC(mm) in PS_CREATE_SID_FUNC() argument