mirror of https://github.com/lukechilds/node.git
Browse Source
Original commit message: Filter out stale left-trimmed handles for scavenges The missing part from https://codereview.chromium.org/2078403002/ R=jochen@chromium.org BUG=chromium:621869 LOG=N Review-Url: https://codereview.chromium.org/2077353004 Cr-Commit-Position: refs/heads/master@{#37184} PR-URL: https://github.com/nodejs/node/pull/10666 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>v6.x
committed by
Myles Borins
7 changed files with 55 additions and 28 deletions
@ -0,0 +1,18 @@ |
|||||
|
// Copyright 2016 the V8 project authors. All rights reserved.
|
||||
|
// Use of this source code is governed by a BSD-style license that can be
|
||||
|
// found in the LICENSE file.
|
||||
|
|
||||
|
// Flags: --expose-gc
|
||||
|
|
||||
|
var o0 = []; |
||||
|
var o1 = []; |
||||
|
var cnt = 0; |
||||
|
var only_scavenge = true; |
||||
|
o1.__defineGetter__(0, function() { |
||||
|
if (cnt++ > 2) return; |
||||
|
o0.shift(); |
||||
|
gc(only_scavenge); |
||||
|
o0.push((64)); |
||||
|
o0.concat(o1); |
||||
|
}); |
||||
|
o1[0]; |
Loading…
Reference in new issue