* Slight improvement to the guardians' performance.
This commit is contained in:
parent
e5f7329d4d
commit
95f34409e6
BIN
bin/ikarus
BIN
bin/ikarus
Binary file not shown.
|
@ -635,12 +635,12 @@ forward_guardians(gc_t* gc){
|
||||||
while(src){
|
while(src){
|
||||||
int i;
|
int i;
|
||||||
int n = src->count;
|
int n = src->count;
|
||||||
for(i=0; i<n; i++){
|
|
||||||
ikp a = add_object(gc, src->ptr[i], "prot");
|
|
||||||
dst = move_guarded(a, dst);
|
|
||||||
}
|
|
||||||
ik_ptr_page* next = src->next;
|
ik_ptr_page* next = src->next;
|
||||||
ik_munmap(src, sizeof(ik_ptr_page));
|
src->next = dst;
|
||||||
|
dst = src;
|
||||||
|
for(i=0; i<n; i++){
|
||||||
|
src->ptr[i] = add_object(gc, src->ptr[i], "prot");
|
||||||
|
}
|
||||||
src = next;
|
src = next;
|
||||||
}
|
}
|
||||||
pcb->guardians[next_gen(gen)] = dst;
|
pcb->guardians[next_gen(gen)] = dst;
|
||||||
|
|
Loading…
Reference in New Issue