[Webkit-unassigned] [Bug 27980] Give an ability to WebKit to free statically allocated pointers before quit
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 1 01:22:08 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=27980
Zoltan Herczeg <zherczeg at inf.u-szeged.hu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #38848| |review?(darin at apple.com)
Flag| |
Attachment #34549|0 |1
is obsolete| |
--- Comment #28 from Zoltan Herczeg <zherczeg at inf.u-szeged.hu> 2009-09-01 01:22:07 PDT ---
Created an attachment (id=38848)
--> (https://bugs.webkit.org/attachment.cgi?id=38848)
Fifth patch
Sorry for my long silence, I was away on Holiday. From the start of this week I
am back again and has rewritten most of the core parts of the patch. Global
pointers are changed to structures (these structures are allocated on .bss
(according to objdump). They are simple C structures -> no constructors or
destructors are called (tested by gdb)). Now every structure has an own
separate file ()
The new files are:
- contains a C struct
create mode 100644 JavaScriptCore/wtf/GlobalPtr.h
- contains a C++ class
create mode 100644 JavaScriptCore/wtf/LocalStaticArrayPtr.h
- contains a C++ class
create mode 100644 JavaScriptCore/wtf/LocalStaticPtr.h
- freeing static variables
create mode 100644 JavaScriptCore/wtf/StaticPtrBase.cpp
- contains a C struct
create mode 100644 JavaScriptCore/wtf/StaticPtrBase.h
There is no inheritance, since a struct is converted to class if inheritance
applied (was strange for me, but it is true). Instead StaticPtrBase must be the
first member of its descendants. The descendants must not contain any virtual
method (to avoid vptr).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list