Ignore:
Timestamp:
Mar 24, 2014, 12:25:32 PM (11 years ago)
Author:
[email protected]
Message:

Add support for thread QoS
https://bugs.webkit.org/show_bug.cgi?id=130688

Reviewed by Andreas Kling.

Source/JavaScriptCore:

  • heap/BlockAllocator.cpp:

(JSC::BlockAllocator::blockFreeingThreadStartFunc):

  • block freeing is a utility activity.

Source/WTF:

  • wtf/FastMalloc.cpp:

(WTF::TCMalloc_PageHeap::runScavengerThread):

  • block freeing is a utility activity.
  • wtf/Threading.h:
    • declaration.
  • wtf/ThreadingPthreads.cpp:

(WTF::createThreadInternal):

  • default to interactive.

(WTF::setCurrentThreadQOSUtility):

  • implementation.
  • wtf/ThreadingWin.cpp:

(WTF::setCurrentThreadQOSUtility):

  • no-op implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/wtf/FastMalloc.cpp

    r165729 r166184  
    8080#include "Assertions.h"
    8181#include "CurrentTime.h"
     82#include "Threading.h"
    8283
    8384#include <limits>
     
    20592060void* TCMalloc_PageHeap::runScavengerThread(void* context)
    20602061{
     2062    setCurrentThreadQOSUtility();
     2063
    20612064    static_cast<TCMalloc_PageHeap*>(context)->scavengerThread();
    20622065#if (COMPILER(MSVC) || COMPILER(SUNCC))
Note: See TracChangeset for help on using the changeset viewer.