Ignore:
Timestamp:
Jun 5, 2008, 1:03:43 PM (17 years ago)
Author:
[email protected]
Message:

Re-landing an independent part of a previously rolled out threading patch.

  • wtf/ThreadSpecific.h: Make sure to initialize POD thread-specific varaibles, too (replaced "new T" with "new T()").
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/ThreadSpecific.h

    r33039 r34380  
    116116template<typename T>
    117117inline ThreadSpecific<T>::ThreadSpecific()
     118    : m_data()
    118119{
    119120}
     
    142143    T* ptr = static_cast<T*>(get());
    143144    if (!ptr) {
    144         ptr = new T;
     145        ptr = new T();
    145146        set(ptr);
    146147    }
Note: See TracChangeset for help on using the changeset viewer.