mirror of
https://github.com/corda/corda.git
synced 2025-02-05 10:39:13 +00:00
revert heap.cpp part of last commit
That change seems to be causing crashes under certain circumstances, so I'm reverting it for now while I debug.
This commit is contained in:
parent
4d0b127989
commit
7d185dd27d
15
src/heap.cpp
15
src/heap.cpp
@ -848,20 +848,13 @@ bitset(Context* c UNUSED, void* o)
|
||||
void
|
||||
free(Context* c, Fixie** fixies)
|
||||
{
|
||||
for (Fixie* p = *fixies; p;) {
|
||||
Fixie* f = p;
|
||||
p = f->next;
|
||||
for (Fixie** p = fixies; *p;) {
|
||||
Fixie* f = *p;
|
||||
|
||||
if (f->immortal()) {
|
||||
if (DebugFixies) {
|
||||
fprintf(stderr, "reset immortal fixie %p\n", f);
|
||||
}
|
||||
memset(f->mask(), 0, Fixie::maskSize(f->size, f->hasMask));
|
||||
f->next = 0;
|
||||
f->handle = 0;
|
||||
f->marked = false;
|
||||
f->dirty = false;
|
||||
p = &(f->next);
|
||||
} else {
|
||||
*p = f->next;
|
||||
if (DebugFixies) {
|
||||
fprintf(stderr, "free fixie %p\n", f);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user