Add preliminary OOM support for Mountain Lion.
BUG=117476
TEST=run base_unittests on Mountain Lion
Review URL: http://codereview.chromium.org/9701031
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1388ccffaf0ca5aa7783c9f267c0d2df2f17b0e5
diff --git a/CFBase.h b/CFBase.h
index f7ecaf6..557007c 100644
--- a/CFBase.h
+++ b/CFBase.h
@@ -50,7 +50,8 @@
CFAllocatorContext _context;
};
-struct ChromeCFAllocatorLion {
+// TODO(avi): verify that this is accurate for 10.8 upon source release; http://crbug.com/117476
+struct ChromeCFAllocatorLions {
ChromeCFRuntimeBase _base;
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
size_t (*size)(struct _malloc_zone_t *zone, const void *ptr); /* returns the size of a block or 0 if not in this zone; must be fast, especially for negative answers */
diff --git a/README.chromium b/README.chromium
index 424d77c..76b1a96 100644
--- a/README.chromium
+++ b/README.chromium
@@ -32,7 +32,7 @@
- Removed everything but the definition of __CFAllocator.
- Modified the reference of CFRuntimeBase to ChromeCFRuntimeBase.
- Renamed __CFAllocator to ChromeCFAllocatorLeopards (from CF-550) and to
- ChromeCFAllocatorLion (from CF-635) to avoid possible name conflicts.
+ ChromeCFAllocatorLions (from CF-635) to avoid possible name conflicts.
cssmapplePriv.h from:
http://www.opensource.apple.com/source/libsecurity_cssm/libsecurity_cssm-31536/lib/cssmapplePriv.h