[Webkit-unassigned] [Bug 163155] New: Web Inspector: The following program hangs the heap snapshot tool

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 7 16:02:02 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=163155

            Bug ID: 163155
           Summary: Web Inspector: The following program hangs the heap
                    snapshot tool
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sbarati at apple.com
                CC: bburg at apple.com, joepeck at webkit.org,
                    mattbaker at apple.com, nvasilyev at apple.com,
                    timothy at apple.com, webkit-bug-importer at group.apple.com

I tried to take snapshots at various times after we allocate the huge string, but it just hangs.

```
<html>
<head>
<title>Trivial Extension</title>
</head>
<body>
<p> Trivial transiently memory-thirsty extension </p>
<script>
var stringArray;
var stringCount = 10000000;
var allocateMemory = function() {
    stringArray = new Array(stringCount);
    for (var i = 0; i < stringCount; ++i) {
        stringArray[i] = String(i);
    }
}

window.setTimeout(function(){
    allocateMemory();
    document.body.appendChild(document.createTextNode("Allocated memory"));
    }, 3000);

window.setTimeout(function() {
    stringArray = null;
    document.body.appendChild(document.createTextNode("Released memory"));
    }, 10000);
</script>
</body>
</html>
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161007/e8a2714b/attachment.html>


More information about the webkit-unassigned mailing list