Frees the object.  If the free list is full, the object will be garbage
collected.

@param obj the object to be freed.
189900
public boolean free(T obj)
  {
    AtomicInteger topRef = _top;

    while (true) {
      final int top = topRef.get();
      
      if (_capacity <= top) {
        return false;
      }

      boolean isFree = _freeStack.compareAndSet(top, null, obj);
      
      topRef.compareAndSet(top, top + 1);

      if (isFree) {
        return true;
      }
    }
  }
1069121
public void free(IPooledObject<V> borrowedObject, boolean reusable) {
		if (borrowedObject == null) return;

		if (borrowed.remove(borrowedObject))
		{
			((PoolableObject<V>)borrowedObject).releaseOwner();
			if (reusable)
				available.addFirst((PoolableObject<V>)borrowedObject);
		}
	}
789957
public static void shutdownObject(Object obj, Logger log) {
    if (obj instanceof Service) {
      ((Service) obj).stopAsync();
    } else if (obj instanceof Closeable) {
      try {
        ((Closeable) obj).close();
      } catch (IOException ioe) {
        log.error("Failed to close {}.", obj);
      }
    }
  }
1310403
public void free()
    {
        super.free();
        m_baOut = null;
        m_daOut = null;
        m_baIn = null;
        m_daIn = null;
    }
870729
public void free()
    {
        if (m_messageMap != null)
        {
            for (BaseMessageQueue messageQueue : m_messageMap.values())
            {
                if (messageQueue != null)
                {       // Don't worry about removing these, since you are removing them all.
                    messageQueue.setMessageManager(null);   // Make sure it doesn't try to remove itself again
                    messageQueue.free();
                }                
            }
        }
        m_messageMap = null;
        super.free();
    }
638625
@SuppressWarnings("unchecked")
    public void finish(final Object obj) {
        finish(request.getJsonConvert(), (Type) null, obj);
    }
681551
public void free()
    {
        // Remove all the objects if this is the primary key
        if (this.getPTable().getPKeyArea(Constants.MAIN_KEY_AREA) == this)
        {
            for (int i = m_VectorObjects.size() - 1 ; i >= 0 ;i--)
            {
                BaseBuffer buffer = (BaseBuffer)m_VectorObjects.elementAt(i);
                buffer.free();
            }
        }
        m_VectorObjects.removeAllElements();
        m_VectorObjects = null;

        super.free();
    }
942575
@Override
    public void visitCode(Code obj) {
        stack.resetForMethodEntry(this);
        localClassTypes.clear();
        super.visitCode(obj);
    }
593034
@Override
    public void visitCode(Code obj) {
        stack.resetForMethodEntry(this);
        exemptExecutors.clear();

        if (!hangingFieldCandidates.isEmpty()) {
            isInitializer = (Values.STATIC_INITIALIZER.equals(methodName) || Values.CONSTRUCTOR.equals(methodName));
            super.visitCode(obj);
        }
    }
877314
public void free()
    {
        super.free();
        if (m_record != null)
            m_record.removeField(this);
        m_record = null;
        m_strFieldName = null;
        m_strFieldDesc = null;
        if (m_vScreenField != null)
        {   // Remove all the screen fields   
            m_vScreenField.removeAllElements();
            m_vScreenField = null;
        }
    }
604833
function emptyObject(obj) {
  Object.keys(obj).forEach((key) => {
    const config = Object.getOwnPropertyDescriptor(obj, key);

    if (config.configurable && !isSpecialProperty(obj, key)) {
      delete obj[key];
    }
  });
}
1226056
@Override
    public void visitCode(final Code obj) {
        stack.resetForMethodEntry(this);
        indexToFieldMap.clear();
        super.visitCode(obj);
    }
320528
public void add(final Object obj) {
		final Class<?> clazz = obj.getClass();

		if (this.clazzes.contains(clazz)) {
			throw new IllegalArgumentException(
					"Only one class-instance per benchmark allowed");
		} else {
			this.clazzes.add(clazz);
			this.objects.add(obj);
		}
	}
720052
public void free()
    {
        m_converter = null;
        for (int i = this.getComponentCount() - 1; i >= 0; i--)
        {
            JComponent component = (JComponent)this.getComponent(i);
            if (component instanceof Freeable)
                ((Freeable)component).free();
        }
    }
421075
public static void safeClose(Closeable obj)
   {
      try
      {
         obj.close();
      }
      catch (IOException e)
      {
         LOG.error("Error while closing " + obj, e);
      }
   }
51259
@Override
    public void visitCode(Code obj) {
        stack.resetForMethodEntry(this);
        lastOpcode = -1;
        lastReg = -1;
        lastIfEqWasBoolean = false;
        lastLoadWasString = false;
        Arrays.fill(lastPCs, -1);
        branchTargets.clear();
        trimLocations.clear();
        super.visitCode(obj);
    }
1354438
def delete_object(self, obj):
        
        session = self.get_db_session()
        session.delete(obj)
        session.commit()