Bug 174501 - [WTF] Newly added AtomicStringImpl should use BufferInternal static string if StringImpl is static
Summary: [WTF] Newly added AtomicStringImpl should use BufferInternal static string if...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on: 174525
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-14 06:47 PDT by Yusuke Suzuki
Modified: 2017-07-21 08:38 PDT (History)
9 users (show)

See Also:


Attachments
Patch (13.37 KB, patch)
2017-07-14 07:11 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews114 for mac-elcapitan (1.21 MB, application/zip)
2017-07-14 08:20 PDT, Build Bot
no flags Details
Patch (13.37 KB, patch)
2017-07-14 08:29 PDT, Yusuke Suzuki
darin: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (16.71 KB, patch)
2017-07-14 09:38 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews112 for mac-elcapitan (1.77 MB, application/zip)
2017-07-14 10:17 PDT, Build Bot
no flags Details
Patch for landing after stabilizing is done (16.65 KB, patch)
2017-07-15 07:27 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2017-07-14 06:47:18 PDT
[WTF] Newly added AtomicStringImpl should use BufferInternal static string if StringImpl::requiresCopy returns false
Comment 1 Yusuke Suzuki 2017-07-14 07:11:08 PDT
Created attachment 315418 [details]
Patch
Comment 2 Build Bot 2017-07-14 08:20:42 PDT
Comment on attachment 315418 [details]
Patch

Attachment 315418 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4119276

Number of test failures exceeded the failure limit.
Comment 3 Build Bot 2017-07-14 08:20:43 PDT
Created attachment 315422 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 4 Yusuke Suzuki 2017-07-14 08:29:16 PDT
Created attachment 315423 [details]
Patch
Comment 5 Darin Adler 2017-07-14 09:22:33 PDT
Comment on attachment 315423 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=315423&action=review

> Source/WTF/wtf/text/AtomicStringImpl.cpp:128
>      const CharacterType* s;

Seems like this should be named "characters" or "string" rather than a single letter. Worth coming back to and cleaning up some day.
Comment 6 Yusuke Suzuki 2017-07-14 09:29:31 PDT
Comment on attachment 315423 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=315423&action=review

>> Source/WTF/wtf/text/AtomicStringImpl.cpp:128
>>      const CharacterType* s;
> 
> Seems like this should be named "characters" or "string" rather than a single letter. Worth coming back to and cleaning up some day.

Yeah, "characters" sounds fine.
Comment 7 Yusuke Suzuki 2017-07-14 09:38:05 PDT
Created attachment 315434 [details]
Patch for landing
Comment 8 Build Bot 2017-07-14 10:17:43 PDT
Comment on attachment 315423 [details]
Patch

Attachment 315423 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4119740

New failing tests:
storage/indexeddb/modern/new-database-after-user-delete.html
Comment 9 Build Bot 2017-07-14 10:17:44 PDT
Created attachment 315439 [details]
Archive of layout-test-results from ews112 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 10 Yusuke Suzuki 2017-07-14 10:37:32 PDT
Committed r219510: <http://trac.webkit.org/changeset/219510>
Comment 11 Matt Lewis 2017-07-14 13:10:43 PDT
This is causing an api failure on iOS.

https://build.webkit.org/builders/Apple%20iOS%2010%20Simulator%20Debug%20WK2%20%28Tests%29/builds/2725/steps/run-api-tests/logs/stdio

Tests that failed:
  WTF.StringImplNullSymbolToAtomicString
Comment 12 Yusuke Suzuki 2017-07-14 13:25:35 PDT
Comment on attachment 315434 [details]
Patch for landing

View in context: https://bugs.webkit.org/attachment.cgi?id=315434&action=review

> Source/WTF/wtf/text/AtomicStringImpl.cpp:423
> +    ASSERT_WITH_MESSAGE(string.length(), "Empty string should be already handled.");

There is one more length() == 0 string: null symbol! We need to keep this lines.
After rolling out my patch, I'll revert this part partially and reland it.
Comment 13 Yusuke Suzuki 2017-07-14 13:26:03 PDT
(In reply to Yusuke Suzuki from comment #12)
> Comment on attachment 315434 [details]
> Patch for landing
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=315434&action=review
> 
> > Source/WTF/wtf/text/AtomicStringImpl.cpp:423
> > +    ASSERT_WITH_MESSAGE(string.length(), "Empty string should be already handled.");
> 
> There is one more length() == 0 string: null symbol! We need to keep this
> lines.
> After rolling out my patch, I'll revert this part partially and reland it.

With assertion and comments.
Comment 14 Yusuke Suzuki 2017-07-15 07:27:18 PDT
Created attachment 315543 [details]
Patch for landing after stabilizing is done

Patch for landing
Comment 15 Yusuke Suzuki 2017-07-21 08:38:04 PDT
Committed r219725: <http://trac.webkit.org/changeset/219725>