<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - strip out non-trivial globals before main"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=38835">bug 38835</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sbergman@redhat.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - strip out non-trivial globals before main"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=38835#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - strip out non-trivial globals before main"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=38835">bug 38835</a>
              from <span class="vcard"><a class="email" href="mailto:sbergman@redhat.com" title="Stephan Bergmann <sbergman@redhat.com>"> <span class="fn">Stephan Bergmann</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=38835#c6">comment #6</a>)
<span class="quote">> Then as the first thing, try to make it non-global if it is possible, like
> here:

> <a href="http://cgit.freedesktop.org/libreoffice/core/commit/">http://cgit.freedesktop.org/libreoffice/core/commit/</a>
> ?id=92bede3900e84d4f08efb81757ec95c518c7fa76

> because that way this will get initialized when used for the first time.  If
> that is not possible, or not practical, then you can do what is suggested in
> the initial comment.  An example can be seen in this commit:</span >

Note that initialization of local static variables is not thread-safe in C++03,
so the above can only be used for cases where the local static variable ends up
in code that is synchronized.  Other cases need to use the rtl/instance.hxx
idioms.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>