Changeset d318a18 for src/Common/GC.cc


Ignore:
Timestamp:
Jul 18, 2018, 5:18:29 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env
Children:
eff03a94
Parents:
5c14030
Message:

Fix assorted memory bugs with persistent-array environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/GC.cc

    r5c14030 rd318a18  
    4141
    4242const GC& GC::operator<< (const GC_Object* obj) const {
    43         if( obj )
    44         {
     43        if( obj ) {
    4544                if( obj->mark != this->mark ) {
    4645                        obj->mark = this->mark;
     
    4948        }
    5049        return *this;
     50}
     51
     52bool GC::notrace_mark(const GC_Object* obj) const {
     53        if ( obj && obj->mark != this->mark ) {
     54                obj->mark = this->mark;
     55                return true;
     56        }
     57        return false;
    5158}
    5259
Note: See TracChangeset for help on using the changeset viewer.