<?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>141625</bug_id>
          
          <creation_ts>2015-02-15 15:18:23 -0800</creation_ts>
          <short_desc>UMBRELLA: Consolidate duplicate soft-linked functions</short_desc>
          <delta_ts>2019-01-18 03:20:23 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>141655</dependson>
    
    <dependson>141791</dependson>
    
    <dependson>141816</dependson>
    
    <dependson>141849</dependson>
    
    <dependson>141870</dependson>
    
    <dependson>141872</dependson>
    
    <dependson>142176</dependson>
    
    <dependson>142177</dependson>
    
    <dependson>142434</dependson>
    
    <dependson>193568</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jeremyj-wk</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jonlee</cc>
    
    <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1069330</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-02-15 15:18:23 -0800</bug_when>
    <thetext>Consolidating duplicate soft-linked functions would remove duplicate code created for each function, and remove/consolidate some static pointers that would cause dirty pages when the soft-linked method is used.

Here&apos;s a rough estimation of the current duplicate functions:

$ grep -r &apos;SOFT_LINK(&apos; Source/WebCore | cut -d, -f2 | sed -e &apos;s/^ *//&apos; -e &apos;s/ *$//&apos; | sort | uniq -c | sort -n

   2 CMNotificationCenterAddListener
   2 CMNotificationCenterGetDefaultLocalCenter
   2 CMNotificationCenterRemoveListener
   2 CMTimeCompare
   2 CMTimeCopyAsDictionary
   2 CMTimeRangeGetEnd
   2 CloseThemeData
   2 DrawThemeBackground
   2 IsThemeActive
   2 IsThemeBackgroundPartiallyTransparent
   2 OpenThemeData
   2 QTMakeTime
   2 paintThemePart
   3 CMSampleBufferGetPresentationTimeStamp
   3 CMTimeMake
   3 CMTimebaseGetTime
   4 CMSampleBufferGetFormatDescription
   4 CMTimeGetSeconds
   4 CMTimeMakeWithSeconds
   4 UTTypeCopyPreferredTagWithClass
   4 UTTypeCreatePreferredIdentifierForTag

I&apos;m not sure how much code space each method takes, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1069371</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-02-15 21:37:31 -0800</bug_when>
    <thetext>This strategy also saves redundant code from duplicate statements like this:

SOFT_LINK_FRAMEWORK(CoreMedia)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1069543</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-02-16 13:05:09 -0800</bug_when>
    <thetext>First pass at consolidating one function:

Bug 141655: Consolidate soft-linked CMTimeMakeWithSeconds() function</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075001</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2015-03-06 10:17:34 -0800</bug_when>
    <thetext>All the dependent bugs are complete.  Moving to RESOLVED/FIXED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>