Backed out changeset 9930f4d0e821 (bug 1620549) for causing build bustages on platform-linux-android.cpp

CLOSED TREE
This commit is contained in:
Arthur Iakab 2020-03-07 03:47:44 +02:00
Родитель 4fa7b340c0
Коммит 7944f5d0c9
1 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -406,17 +406,9 @@ SamplerThread::SamplerThread(PSLockRef aLock, uint32_t aActivityGeneration,
// Start the sampling thread. It repeatedly sends a SIGPROF signal. Sending
// the signal ourselves instead of relying on itimer provides much better
// accuracy.
//
// N_STACK_BYTES are needed to store backtrace information, so use that plus
// some extra as the minimum stack size for the sampler thread to ensure that
// it doesn't overflow.
pthread_attr_t attr;
if (pthread_attr_init(&attr) != 0 ||
pthread_attr_setstacksize(&attr, lul::N_STACK_BYTES + 20 * 1024) != 0 ||
pthread_create(&mThread, &attr, ThreadEntry, this) != 0) {
if (pthread_create(&mThread, nullptr, ThreadEntry, this) != 0) {
MOZ_CRASH("pthread_create failed");
}
pthread_attr_destroy(&attr);
}
SamplerThread::~SamplerThread() {