@Override
  public synchronized void close() {
    if (!mIsClosed) {
      mIsClosed = true;
      nativeFree(mNativePtr);
    }
  }
flag indicating if this object was closed @GuardedBy("this")
memory-types/nativememory/src/main/java/com/facebook/imagepipeline/memory/NativeMemoryChunk.java