| OLD | NEW |
| 1 // Copyright (c) 2005, 2007, Google Inc. | 1 // Copyright (c) 2005, 2007, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "TCSystemAlloc.h" | 35 #include "TCSystemAlloc.h" |
| 36 | 36 |
| 37 #include "Assertions.h" | 37 #include "Assertions.h" |
| 38 #include "CheckedArithmetic.h" | 38 #include "CheckedArithmetic.h" |
| 39 #include "TCSpinLock.h" | 39 #include "TCSpinLock.h" |
| 40 #include "UnusedParam.h" | 40 #include "UnusedParam.h" |
| 41 #include "VMTags.h" | 41 #include "VMTags.h" |
| 42 #include <algorithm> | 42 #include <algorithm> |
| 43 #include <stdint.h> | 43 #include <stdint.h> |
| 44 | 44 |
| 45 #if OS(WINDOWS) | 45 #if OS(WIN) |
| 46 #include "windows.h" | 46 #include "windows.h" |
| 47 #else | 47 #else |
| 48 #include <errno.h> | 48 #include <errno.h> |
| 49 #include <unistd.h> | 49 #include <unistd.h> |
| 50 #include <sys/mman.h> | 50 #include <sys/mman.h> |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 #ifndef MAP_ANONYMOUS | 53 #ifndef MAP_ANONYMOUS |
| 54 #define MAP_ANONYMOUS MAP_ANON | 54 #define MAP_ANONYMOUS MAP_ANON |
| 55 #endif | 55 #endif |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 #else | 243 #else |
| 244 | 244 |
| 245 // Platforms that don't need to explicitly commit memory use an empty inline ver
sion of TCMalloc_SystemCommit | 245 // Platforms that don't need to explicitly commit memory use an empty inline ver
sion of TCMalloc_SystemCommit |
| 246 // declared in TCSystemAlloc.h | 246 // declared in TCSystemAlloc.h |
| 247 | 247 |
| 248 #endif | 248 #endif |
| 249 | 249 |
| 250 #endif // #if !USE(SYSTEM_MALLOC) | 250 #endif // #if !USE(SYSTEM_MALLOC) |
| 251 | 251 |
| OLD | NEW |