Changeset 216231 in webkit


Ignore:
Timestamp:
May 4, 2017, 8:24:55 PM (8 years ago)
Author:
mark.lam@apple.com
Message:

API test WTF.StaticStringImpl crashing in TestWebKitAPI::WTF_StaticStringImpl_Test::TestBody() + 3188
https://bugs.webkit.org/show_bug.cgi?id=171702

Reviewed by Filip Pizlo.

The test was supposed to use the MAKE_STATIC_STRING_IMPL macro. I had previously
changed it to instantiate an automatic StaticStringImpl (i.e. stack allocated) to
confirm that the test will detect a regression. Unfortunately, I forgot to
change it back to using MAKE_STATIC_STRING_IMPL before I landed the test.
This patch fixes that.

  • TestWebKitAPI/Tests/WTF/StringImpl.cpp:

(TestWebKitAPI::neverDestroyedString):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r216230 r216231  
     12017-05-04  Mark Lam  <mark.lam@apple.com>
     2
     3        API test WTF.StaticStringImpl crashing in TestWebKitAPI::WTF_StaticStringImpl_Test::TestBody() + 3188
     4        https://bugs.webkit.org/show_bug.cgi?id=171702
     5
     6        Reviewed by Filip Pizlo.
     7
     8        The test was supposed to use the MAKE_STATIC_STRING_IMPL macro.  I had previously
     9        changed it to instantiate an automatic StaticStringImpl (i.e. stack allocated) to
     10        confirm that the test will detect a regression.  Unfortunately, I forgot to
     11        change it back to using MAKE_STATIC_STRING_IMPL before I landed the test.
     12        This patch fixes that.
     13
     14        * TestWebKitAPI/Tests/WTF/StringImpl.cpp:
     15        (TestWebKitAPI::neverDestroyedString):
     16
    1172017-05-04  Ryan Haddad  <ryanhaddad@apple.com>
    218
  • trunk/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp

    r216217 r216231  
    630630static const String& neverDestroyedString()
    631631{
    632     static NeverDestroyed<String> str(StaticStringImpl("NeverDestroyedString"));
     632    static NeverDestroyed<String> str(MAKE_STATIC_STRING_IMPL("NeverDestroyedString"));
    633633    return str;
    634634};
Note: See TracChangeset for help on using the changeset viewer.