Skip to content

Commit 9b58e58

Browse files
fix comments
1 parent 6967b8a commit 9b58e58

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

profiling/src/allocation/allocation_ge84.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,17 @@ impl ZendMMState {
9191

9292
#[cfg(php_zts)]
9393
thread_local! {
94-
/// Using an `UnsafeCell` here should be okay. There might not be any
95-
/// synchronisation issues, as it is used in as thread local and only
94+
/// Using a `Cell` here should be okay. There might not be any
95+
/// synchronization issues, as it is used in as thread local and only
9696
/// mutated in RINIT and RSHUTDOWN.
9797
static ZEND_MM_STATE: Cell<ZendMMState> = const {
9898
Cell::new(ZendMMState::new())
9999
};
100100
}
101+
101102
#[cfg(not(php_zts))]
103+
/// Using a `Cell` here should be okay. There might not be any
104+
/// synchronization issues, as it is only mutated in RINIT and RSHUTDOWN.
102105
static mut ZEND_MM_STATE: Cell<ZendMMState> = Cell::new(ZendMMState::new());
103106

104107
#[cfg(php_zts)]

0 commit comments

Comments
 (0)