Permalink
Browse files

Minor clarity improvement.

  • Loading branch information...
1 parent 951ca6a commit 5875c35bfe7c1844afa464f4ff414ba1676c449d Evan Weaver committed Jul 14, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 gc.c
View
5 gc.c
@@ -1773,15 +1773,14 @@ static int obj_free _((VALUE));
static void add_to_correct_freelist(RVALUE *p)
{
- int longlived = OBJ_LONGLIVED(p);
heaps_space_t *heaps_space;
// Has explicit longlife flag
- if(longlived) {
+ if(OBJ_LONGLIVED(p)) {
heaps_space = &longlife_heaps_space;
}
// Has some flags (so they weren't cleared), but not longlife
- else if(p->as.free.flags != 0 && !longlived) {
+ else if(p->as.free.flags != 0) {
heaps_space = &eden_heaps_space;
}
// If all else fails, use slower is_pointer_to_longlife_heap()

0 comments on commit 5875c35

Please sign in to comment.