diff --git src/tbbmalloc/proxy_overload_osx.h src/tbbmalloc/proxy_overload_osx.h
index 53afe13..98f622d 100644
|
|
struct DoMallocReplacement { |
139 | 139 | introspect.force_unlock = &zone_force_unlock; |
140 | 140 | introspect.statistics = zone_statistics; |
| 141 | #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 |
141 | 142 | introspect.zone_locked = &zone_locked; |
142 | 143 | introspect.enable_discharge_checking = &impl_zone_enable_discharge_checking; |
143 | 144 | introspect.disable_discharge_checking = &impl_zone_disable_discharge_checking; |
144 | 145 | introspect.discharge = &impl_zone_discharge; |
145 | | |
| 146 | #endif |
146 | 147 | zone.size = &impl_malloc_usable_size; |
147 | 148 | zone.malloc = &impl_malloc; |
148 | 149 | zone.calloc = &impl_calloc; |
… |
… |
struct DoMallocReplacement { |
155 | 156 | zone.version = 8; |
156 | 157 | zone.memalign = impl_memalign; |
| 158 | #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 |
157 | 159 | zone.free_definite_size = &impl_free_definite_size; |
158 | 160 | zone.pressure_relief = &impl_pressure_relief; |
159 | | |
| 161 | #endif |
160 | 162 | // make sure that default purgeable zone is initialized |
161 | 163 | malloc_default_purgeable_zone(); |
162 | 164 | void* ptr = malloc(1); |