SCI: Get rid of EngineState::stack_segment
svn-id: r47833
This commit is contained in:
parent
b2d69649f7
commit
bb5e34a014
7 changed files with 16 additions and 16 deletions
|
@ -130,10 +130,11 @@ reg_t_hash_map *find_all_used_references(EngineState *s) {
|
|||
debugC(2, kDebugLevelGC, "[GC] -- Finished explicitly loaded scripts, done with root set");
|
||||
|
||||
// Run Worklist Algorithm
|
||||
SegmentId stack_seg = segMan->findSegmentByType(SEG_TYPE_STACK);
|
||||
while (!wm._worklist.empty()) {
|
||||
reg_t reg = wm._worklist.back();
|
||||
wm._worklist.pop_back();
|
||||
if (reg.segment != s->stack_segment) { // No need to repeat this one
|
||||
if (reg.segment != stack_seg) { // No need to repeat this one
|
||||
debugC(2, kDebugLevelGC, "[GC] Checking %04x:%04x", PRINT_REG(reg));
|
||||
if (reg.segment < segMan->_heap.size() && segMan->_heap[reg.segment])
|
||||
segMan->_heap[reg.segment]->listAllOutgoingReferences(reg, &wm, add_outgoing_refs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue