Changeset 20019 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Mar 7, 2007, 7:37:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r20015 r20019 565 565 #endif 566 566 567 // MARK: first mark all referenced objects recursively starting out from the set of root objects 568 569 #ifndef NDEBUG 570 // Forbid malloc during the mark phase. Marking a thread suspends it, so 571 // a malloc inside mark() would risk a deadlock with a thread that had been 572 // suspended while holding the malloc lock. 573 fastMallocForbid(); 574 #endif 575 567 576 if (Interpreter::s_hook) { 568 577 Interpreter* scr = Interpreter::s_hook; … … 573 582 } 574 583 575 // MARK: first mark all referenced objects recursively starting out from the set of root objects576 577 584 markStackObjectsConservatively(); 578 585 markProtectedObjects(); … … 580 587 if (!currentThreadIsMainThread) 581 588 markMainThreadOnlyObjects(); 589 590 #ifndef NDEBUG 591 fastMallocAllow(); 592 #endif 582 593 583 594 // SWEEP: delete everything with a zero refcount (garbage) and unmark everything else
Note:
See TracChangeset
for help on using the changeset viewer.