Changeset 231888 in webkit


Ignore:
Timestamp:
May 16, 2018 10:21:22 PM (6 years ago)
Author:
sbarati@apple.com
Message:

VM::shrinkFootprint should call collectNow(Sync) instead of collectSync so it also eagerly sweeps
https://bugs.webkit.org/show_bug.cgi?id=185707

Reviewed by Mark Lam.

  • runtime/VM.cpp:

(JSC::VM::shrinkFootprint):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r231886 r231888  
     12018-05-16  Saam Barati  <sbarati@apple.com>
     2
     3        VM::shrinkFootprint should call collectNow(Sync) instead of collectSync so it also eagerly sweeps
     4        https://bugs.webkit.org/show_bug.cgi?id=185707
     5
     6        Reviewed by Mark Lam.
     7
     8        * runtime/VM.cpp:
     9        (JSC::VM::shrinkFootprint):
     10
    1112018-05-16  Caio Lima  <ticaiolima@gmail.com>
    212
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r231839 r231888  
    779779    sanitizeStackForVM(this);
    780780    deleteAllCode(DeleteAllCodeIfNotCollecting);
    781     heap.collectSync();
     781    heap.collectNow(Synchronousness::Sync);
    782782    WTF::releaseFastMallocFreeMemory();
    783783    // FIXME: Consider stopping various automatic threads here.
Note: See TracChangeset for help on using the changeset viewer.