<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BundleResources",
  "identifier" : "/documentation/BundleResources/Entitlements/com.apple.security.hardened-process.hardened-heap",
  "metadataVersion" : "0.1.0",
  "role" : "Property List Key",
  "symbol" : {
    "kind" : "Property List Key",
    "modules" : [
      "Bundle Resources"
    ],
    "preciseIdentifier" : "entitlements:Entitlements.com.apple.security.hardened-process.hardened-heap"
  },
  "title" : "com.apple.security.hardened-process.hardened-heap"
}
-->

# com.apple.security.hardened-process.hardened-heap

A Boolean value that indicates whether your app or extension opts in to additional hardening for heap allocations.

## Discussion

When you add this entitlement to your app or extension, the system applies additional restrictions to the type-aware memory allocator for memory your app or extension requests. These may include enforcing address space isolation of certain types by limiting the cumulative amount of virtual memory it can allocate, and probabilistically placing inaccessible guard pages around live allocations or upon deallocation.

In addition to this entitlement, set the build settings `CLANG_ENABLE_C_TYPED_ALLOCATOR_SUPPORT` and `CLANG_ENABLE_CPLUSPLUS_TYPED_ALLOCATOR_SUPPORT` to `YES`, so the compiler rewrites memory allocations in your code to use the type-aware allocator.

Xcode adds this entitlement to your app or extension when you add the Enhanced Security capability. For more information, see <doc://com.apple.documentation/documentation/Xcode/enabling-enhanced-security-for-your-app>.

> Note: This entitlement requires the following entitlements:
> 
> - ``doc://com.apple.bundleresources/documentation/BundleResources/Entitlements/com.apple.security.hardened-process``
> - ``doc://com.apple.bundleresources/documentation/BundleResources/Entitlements/com.apple.security.hardened-process.enhanced-security-version-string``

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)