mirror of
https://github.com/corda/corda.git
synced 2025-06-01 23:20:54 +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
|
void
|
||||||
free(Context* c, Fixie** fixies)
|
free(Context* c, Fixie** fixies)
|
||||||
{
|
{
|
||||||
for (Fixie* p = *fixies; p;) {
|
for (Fixie** p = fixies; *p;) {
|
||||||
Fixie* f = p;
|
Fixie* f = *p;
|
||||||
p = f->next;
|
|
||||||
|
|
||||||
if (f->immortal()) {
|
if (f->immortal()) {
|
||||||
if (DebugFixies) {
|
p = &(f->next);
|
||||||
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;
|
|
||||||
} else {
|
} else {
|
||||||
|
*p = f->next;
|
||||||
if (DebugFixies) {
|
if (DebugFixies) {
|
||||||
fprintf(stderr, "free fixie %p\n", f);
|
fprintf(stderr, "free fixie %p\n", f);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user