Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Nov 25, 2024
1 parent 150fc07 commit b94da1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions profiling/src/allocation/allocation_ge84.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ unsafe fn alloc_prof_prev_alloc(len: size_t) -> *mut c_void {
let zend_mm_state = cell.get();
// Safety: `ZEND_MM_STATE.prev_heap` got initialised in `alloc_prof_rinit()`
zend::zend_mm_set_heap((*zend_mm_state).prev_heap);
// Safety: `ZEND_MM_STATE.alloc` will be initialised in
// Safety: `ZEND_MM_STATE.prev_custom_mm_alloc` will be initialised in
// `alloc_prof_rinit()` and only point to this function when
// `prev_custom_mm_alloc` is also initialised
let ptr = ((*zend_mm_state).prev_custom_mm_alloc.unwrap())(len);
Expand Down Expand Up @@ -275,7 +275,7 @@ unsafe fn alloc_prof_prev_free(ptr: *mut c_void) {
let zend_mm_state = cell.get();
// Safety: `ZEND_MM_STATE.prev_heap` got initialised in `alloc_prof_rinit()`
zend::zend_mm_set_heap((*zend_mm_state).prev_heap);
// Safety: `ZEND_MM_STATE.free` will be initialised in
// Safety: `ZEND_MM_STATE.prev_custom_mm_free` will be initialised in
// `alloc_prof_rinit()` and only point to this function when
// `prev_custom_mm_free` is also initialised
((*zend_mm_state).prev_custom_mm_free.unwrap())(ptr);
Expand Down Expand Up @@ -313,7 +313,7 @@ unsafe fn alloc_prof_prev_realloc(prev_ptr: *mut c_void, len: size_t) -> *mut c_
let zend_mm_state = cell.get();
// Safety: `ZEND_MM_STATE.prev_heap` got initialised in `alloc_prof_rinit()`
zend::zend_mm_set_heap((*zend_mm_state).prev_heap);
// Safety: `ZEND_MM_STATE.realloc` will be initialised in
// Safety: `ZEND_MM_STATE.prev_custom_mm_realloc` will be initialised in
// `alloc_prof_rinit()` and only point to this function when
// `prev_custom_mm_realloc` is also initialised
let ptr = ((*zend_mm_state).prev_custom_mm_realloc.unwrap())(prev_ptr, len);
Expand All @@ -336,7 +336,7 @@ unsafe fn alloc_prof_prev_gc() -> size_t {
let zend_mm_state = cell.get();
// Safety: `ZEND_MM_STATE.prev_heap` got initialised in `alloc_prof_rinit()`
zend::zend_mm_set_heap((*zend_mm_state).prev_heap);
// Safety: `ZEND_MM_STATE.gc` will be initialised in
// Safety: `ZEND_MM_STATE.prev_custom_mm_gc` will be initialised in
// `alloc_prof_rinit()` and only point to this function when
// `prev_custom_mm_gc` is also initialised
let freed = ((*zend_mm_state).prev_custom_mm_gc.unwrap())();
Expand All @@ -359,7 +359,7 @@ unsafe fn alloc_prof_prev_shutdown(full: bool, silent: bool) {
let zend_mm_state = cell.get();
// Safety: `ZEND_MM_STATE.prev_heap` got initialised in `alloc_prof_rinit()`
zend::zend_mm_set_heap((*zend_mm_state).prev_heap);
// Safety: `ZEND_MM_STATE.shutdown` will be initialised in
// Safety: `ZEND_MM_STATE.prev_custom_mm_shutdown` will be initialised in
// `alloc_prof_rinit()` and only point to this function when
// `prev_custom_mm_shutdown` is also initialised
((*zend_mm_state).prev_custom_mm_shutdown.unwrap())(full, silent);
Expand Down

0 comments on commit b94da1a

Please sign in to comment.