Chromium Code Reviews| Index: third_party/tcmalloc/chromium/src/base/sysinfo.cc |
| =================================================================== |
| --- third_party/tcmalloc/chromium/src/base/sysinfo.cc (revision 86078) |
| +++ third_party/tcmalloc/chromium/src/base/sysinfo.cc (working copy) |
| @@ -176,6 +176,9 @@ |
| // in their first character! If that assumption is violated, we'll |
| // still get a profile, but one with an unexpected name. |
| // TODO(csilvers): set an envvar instead when we can do it reliably. |
| +// |
| +// In Chromium this hack is intentionally disabled, because the path is not |
| +// re-initialized upon fork. |
| bool GetUniquePathFromEnv(const char* env_name, char* path) { |
| char* envval = getenv(env_name); |
| if (envval == NULL || *envval == '\0') |
| @@ -185,7 +188,9 @@ |
| envval[0] & 127, envval+1, (unsigned int)(getpid())); |
| } else { |
| snprintf(path, PATH_MAX, "%s", envval); |
| - envval[0] |= 128; // set high bit for kids to see |
| +#if 0 |
| + envval[0] |= 128; // set high bit for kids to seed |
|
willchan no longer on Chromium
2011/05/20 21:26:06
seed? is that a typo?
Alexander Potapenko
2011/05/23 09:45:01
Done.
|
| +#endif |
| } |
| return true; |
| } |