Lines Matching refs:mm
34 # error mm is not thread-safe
52 MM *mm; member
88 nhash = mm_calloc(data->mm, nmax + 1, sizeof(*data->hash)); in hash_split()
103 mm_free(data->mm, data->hash); in hash_split()
117 sd = mm_malloc(data->mm, sizeof(ps_sd) + keylen); in ps_sd_new()
120 …php_error_docref(NULL, E_WARNING, "mm_malloc failed, avail %ld, err %s", mm_available(data->mm), m… in ps_sd_new()
169 mm_free(data->mm, sd->data); in ps_sd_destroy()
172 mm_free(data->mm, sd); in ps_sd_destroy()
219 PS_MOD_SID(mm)
227 data->mm = mm_create(0, path); in ps_mm_initialize()
228 if (!data->mm) { in ps_mm_initialize()
234 data->hash = mm_calloc(data->mm, data->hash_max + 1, sizeof(ps_sd *)); in ps_mm_initialize()
236 mm_destroy(data->mm); in ps_mm_initialize()
262 mm_free(data->mm, data->hash); in ps_mm_destroy()
263 mm_destroy(data->mm); in ps_mm_destroy()
324 PS_OPEN_FUNC(mm) in PS_OPEN_FUNC() argument
336 PS_CLOSE_FUNC(mm) in PS_CLOSE_FUNC() argument
343 PS_READ_FUNC(mm) in PS_READ_FUNC() argument
349 mm_lock(data->mm, MM_LOCK_RD); in PS_READ_FUNC()
376 mm_unlock(data->mm); in PS_READ_FUNC()
381 PS_WRITE_FUNC(mm) in PS_WRITE_FUNC() argument
386 mm_lock(data->mm, MM_LOCK_RW); in PS_WRITE_FUNC()
396 if (data->mm) { in PS_WRITE_FUNC()
397 mm_free(data->mm, sd->data); in PS_WRITE_FUNC()
400 sd->data = mm_malloc(data->mm, sd->alloclen); in PS_WRITE_FUNC()
415 mm_unlock(data->mm); in PS_WRITE_FUNC()
420 PS_DESTROY_FUNC(mm) in PS_DESTROY_FUNC() argument
425 mm_lock(data->mm, MM_LOCK_RW); in PS_DESTROY_FUNC()
432 mm_unlock(data->mm); in PS_DESTROY_FUNC()
437 PS_GC_FUNC(mm) in PS_GC_FUNC() argument
451 mm_lock(data->mm, MM_LOCK_RW); in PS_GC_FUNC()
465 mm_unlock(data->mm); in PS_GC_FUNC()
470 PS_CREATE_SID_FUNC(mm) in PS_CREATE_SID_FUNC() argument