| Summary: | [lldb-webkit] Non-empty strings may be pretty-printed as empty | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
| Component: | Tools / Tests | Assignee: | Daniel Bates <dbates> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | darin, lforschler, msaboff, saam, simon.fraser, webkit-bug-importer, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Local Build | ||||||
| Hardware: | Mac | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Daniel Bates
2018-06-29 10:53:23 PDT
$ Tools/Scripts/dump-class-layout -c Debug JavaScriptCore StringImpl
Found 1 types matching "StringImpl" in "/Volumes/.../WebKitBuild/Debug/JavaScriptCore.framework/JavaScriptCore" for x86_64
+0 { 24} StringImpl
+0 { 24} WTF::StringImplShape
+0 < 4> unsigned int m_refCount;
+4 < 4> unsigned int m_length;
+8 < 8> WTF::StringImplShape::(anonymous union) None;
+16 < 4> unsigned int m_hashAndFlags;
+20 < 4> <PADDING>
+20 < 4> <PADDING>
Total byte size: 24
Total pad bytes: 8
Padding percentage: 33.33 %
dump-class-layout does not have an issue resolving that WTF::StringImpl is effectively a WTF::StringImplShape. The LLDB repl seems to have an issue with this. Created attachment 343923 [details]
Patch
Committed r233375: <https://trac.webkit.org/changeset/233375> |