Changeset 39672 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jan 6, 2009, 11:24:18 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r39670 r39672 1 2009-01-06 Alexey Proskuryakov <[email protected]> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=23142 6 ThreadGlobalData leaks seen on buildbot 7 8 * wtf/ThreadSpecific.h: (WTF::ThreadSpecific::destroy): Temporarily reset the thread 9 specific value to make getter work on Mac OS X. 10 11 * wtf/Platform.h: Touch this file again to make sure all Windows builds use the most recent 12 version of ThreadSpecific.h. 13 1 14 2009-01-05 Gavin Barraclough <[email protected]> 2 15 -
trunk/JavaScriptCore/wtf/Platform.h
r39658 r39672 1 1 /* 2 * Copyright (C) 2006 Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without -
trunk/JavaScriptCore/wtf/ThreadSpecific.h
r39604 r39672 98 98 { 99 99 Data* data = static_cast<Data*>(ptr); 100 101 // We want get() to keep working while data destructor works, because it can be called indirectly by the destructor. 102 // Some pthreads implementations zero out the pointer before calling destroy(), so we temporarily reset it. 103 pthread_setspecific(data->owner->m_key, ptr); 100 104 data->value->~T(); 101 105 fastFree(data->value); 102 // Only reset the pointer after value destructor finishes - otherwise, code in destructor could trigger103 // re-creation of the object.104 106 pthread_setspecific(data->owner->m_key, 0); 105 107 delete data;
Note:
See TracChangeset
for help on using the changeset viewer.