Skip to content

Should swappedInSpace->Contains(object) in line 1036 of function GcRecordFree be !swappedInSpace->Contains(object)? #3

Description

@dpinthinker

void GcRecordFree(Thread * self, mirror::Object * object) {
if (!swapEnabled) {
return;
}
/*
* The correctness of this check depends on upon several assumptions:
* 1) Only the garbage collectors and my swapping code call Free() on the
* RosAlloc space and large object space.
* 2) The garbage collectors never run concurrently with any swapping
* methods that free objects or stubs as part of swapping (currently,
* the only such method is SwapObjectsOut()).
*/
if (creatingStubs) {
return;
}
if (swappedInSpace->Contains(object)) {
return;
}

I think it may be missing a ! in front of swappedInSpace->Contains(object) in line 1036

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions