Skip to content

Commit c33cdf7

Browse files
committed
fix(profiling): crash in upload for DD_EXTERNAL_ENV
1 parent 2c70c61 commit c33cdf7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

profiling/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ impl SystemSettings {
110110
}
111111
}
112112

113+
// Initialize the lazy lock holding the env var for new origin
114+
// detection in a safe place.
115+
_ = std::sync::LazyLock::force(&libdd_common::entity_id::DD_EXTERNAL_ENV);
116+
113117
// Work around version-specific issues.
114118
#[cfg(not(php_zend_mm_set_custom_handlers_ex))]
115119
if allocation::allocation_le83::first_rinit_should_disable_due_to_jit() {

0 commit comments

Comments
 (0)