<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22315</bug_id>
          
          <creation_ts>2008-11-17 09:16:18 -0800</creation_ts>
          <short_desc>Adopt check-for-exit-time-destructors on Windows</short_desc>
          <delta_ts>2016-07-28 12:59:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=22314</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=160302</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>pvollan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99053</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-11-17 09:16:18 -0800</bug_when>
    <thetext>It would be good to adopt the check-for-global-initializers script on Windows. I&apos;ve done a little investigation into what would have to change in the script to make it work on Windows. Here&apos;s what I&apos;ve come up with (based on &lt;http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/check-for-exit-time-destructors?rev=38476&gt;):

1. Use of Xcode-specific environment variables

We can either set similar variables on Windows or pass the relevant values as parameters.

2. Use of a &quot;link file list&quot;

We can get the list of object files linked into the executable by using &quot;dumpbin.exe /archivemembers&quot;.

3. Searching for &quot;___cxa_atexit&quot; to indicate an exit-time destructor

On Windows, &quot;_atexit&quot; is used instead.

4. List of files to skip uses .o extension

On Windows, these files have a .obj extension. We could just use the part of
the filename before the extension instead.

5. Use of otool to disassemble binaries

On Windows, we can use &quot;dumpbin.exe /disasm&quot; instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99056</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-11-17 09:17:07 -0800</bug_when>
    <thetext>See bug 22314 about adopting check-for-global-initializers as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215345</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-07-28 12:59:16 -0700</bug_when>
    <thetext>NOTE: Bug 160302 is going to remove these scripts.

However, I think the scripts would have had to use different tools to make them work on Windows.  (Maybe MSVC++ has a switch similar to -Wexit-time-destructors instead?)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>