Ignore:
Timestamp:
Feb 15, 2019, 10:26:16 AM (6 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r241559 and r241566.
https://bugs.webkit.org/show_bug.cgi?id=194710

Causes layout test crashes under GuardMalloc (Requested by
ryanhaddad on #webkit).

Reverted changesets:

"[WTF] Add environment variable helpers"
https://bugs.webkit.org/show_bug.cgi?id=192405
https://trac.webkit.org/changeset/241559

"Unreviewed build fix for WinCairo Debug after r241559."
https://trac.webkit.org/changeset/241566

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tools/CodeProfiling.cpp

    r241559 r241593  
    2929#include "CodeProfile.h"
    3030#include "MachineContext.h"
    31 #include <wtf/Environment.h>
    3231#include <wtf/MetaAllocator.h>
    3332
     
    8786{
    8887    // Check for JSC_CODE_PROFILING.
    89     auto codeProfilingMode = Environment::getUInt("JSC_CODE_PROFILING");
     88    const char* codeProfilingMode = getenv("JSC_CODE_PROFILING");
    9089    if (!codeProfilingMode)
    9190        return;
    9291
    93     // Check for a valid mode, currently 1, 2, or 3.
     92    // Check for a valid mode, currently "1", "2", or "3".
     93    if (!codeProfilingMode[0] || codeProfilingMode[1])
     94        return;
    9495    switch (*codeProfilingMode) {
    95     case 1:
     96    case '1':
    9697        s_mode = Enabled;
    9798        break;
    98     case 2:
     99    case '2':
    99100        s_mode = Verbose;
    100101        break;
    101     case 3:
     102    case '3':
    102103        s_mode = VeryVerbose;
    103104        break;
Note: See TracChangeset for help on using the changeset viewer.