Changeset 37215 in webkit for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- Oct 2, 2008, 4:48:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r37184 r37215 44 44 { 45 45 ExecState* exec = toJS(ctx); 46 exec->globalData().heap ->registerThread();46 exec->globalData().heap.registerThread(); 47 47 JSLock lock(exec); 48 48 … … 70 70 { 71 71 ExecState* exec = toJS(ctx); 72 exec->globalData().heap ->registerThread();72 exec->globalData().heap.registerThread(); 73 73 JSLock lock(exec); 74 74 … … 96 96 ExecState* exec = toJS(ctx); 97 97 JSGlobalData& globalData = exec->globalData(); 98 Heap* heap = globalData.heap;99 98 100 99 JSLock lock(globalData.isSharedInstance); 101 100 102 if (! heap->isBusy())103 heap->collect();101 if (!globalData.heap.isBusy()) 102 globalData.heap.collect(); 104 103 105 104 // FIXME: Perhaps we should trigger a second mark and sweep … … 111 110 { 112 111 ExecState* exec = toJS(ctx); 113 exec->globalData().heap ->registerThread();112 exec->globalData().heap.registerThread(); 114 113 JSLock lock(exec); 115 114 116 exec->globalData().heap ->reportExtraMemoryCost(size);115 exec->globalData().heap.reportExtraMemoryCost(size); 117 116 }
Note:
See TracChangeset
for help on using the changeset viewer.