mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Append peer fragments at the end of the list (so f->blacklist() always counts against the same fragment).
This commit is contained in:
parent
dcb470b104
commit
af92aac55a
@ -204,8 +204,15 @@ namespace nanojit
|
||||
Fragment* Fragmento::newLoop(const void* ip)
|
||||
{
|
||||
Fragment *f = newFrag(ip);
|
||||
f->peer = _frags->get(ip);
|
||||
_frags->put(ip, f);
|
||||
Fragment* p = _frags->get(ip);
|
||||
if (p) {
|
||||
/* append at the end of the peer list */
|
||||
Fragment* next;
|
||||
while ((next = p->peer) != NULL)
|
||||
p = next;
|
||||
p->peer = f;
|
||||
} else
|
||||
_frags->put(ip, f); /* this is the first fragment */
|
||||
f->anchor = f;
|
||||
f->root = f;
|
||||
f->kind = LoopTrace;
|
||||
|
Loading…
Reference in New Issue
Block a user