Ignore:
Timestamp:
Jan 20, 2011, 8:30:54 AM (14 years ago)
Author:
Csaba Osztrogonác
Message:

Refactoring of the custom allocation framework
https://bugs.webkit.org/show_bug.cgi?id=49897

Patch by Zoltan Horvath <[email protected]> on 2011-01-20
Reviewed by Csaba Osztrogonác.

Source/JavaScriptCore:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

  • wtf/FastAllocBase.h: Turn FastAllocBase's implementation into a macro.

Source/WebCore:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Source/WebKit:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Source/WebKit2:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

Tools:

Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
equivalent macro implementation at the necessary places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/ThreadingPrimitives.h

    r66531 r76248  
    3535
    3636#include <wtf/Assertions.h>
     37#include <wtf/FastAllocBase.h>
    3738#include <wtf/Locker.h>
    3839#include <wtf/Noncopyable.h>
     
    9798#endif
    9899   
    99 class Mutex : public Noncopyable {
     100class Mutex {
     101    WTF_MAKE_NONCOPYABLE(Mutex); WTF_MAKE_FAST_ALLOCATED;
    100102public:
    101103    Mutex();
     
    114116typedef Locker<Mutex> MutexLocker;
    115117
    116 class ReadWriteLock : public Noncopyable {
     118class ReadWriteLock {
     119    WTF_MAKE_NONCOPYABLE(ReadWriteLock);
    117120public:
    118121    ReadWriteLock();
     
    131134};
    132135
    133 class ThreadCondition : public Noncopyable {
     136class ThreadCondition {
     137    WTF_MAKE_NONCOPYABLE(ThreadCondition);
    134138public:
    135139    ThreadCondition();
Note: See TracChangeset for help on using the changeset viewer.