Examples of free()


Examples of com.caucho.db.block.Block.free()

      if (keyCompare == null)
        continue;

      Block rootBlock = allocateIndexBlock();
      long rootBlockId = rootBlock.getBlockId();
      rootBlock.free();

      BTree btree = new BTree(this, rootBlockId, column.getLength(),
                              keyCompare);

      column.setIndex(btree);
View Full Code Here

Examples of com.caucho.db.block.Block.free()

          }

          block.setDirty(0, BLOCK_SIZE);
        }
      } finally {
        block.free();
      }
    }

    long blockAddr = 0;
View Full Code Here

Examples of com.caucho.db.block.Block.free()

          return blockIdToAddress(blockId, rowOffset);
        }

        Block freeBlock = block;
        block = null;
        freeBlock.free();
      }
    } catch (InterruptedException e) {
      throw new IllegalStateException(e);
    } finally {
      if (block != null)
View Full Code Here

Examples of com.caucho.db.block.Block.free()

      Block block = allocateRow();

      blockId = block.getBlockId();
      // System.out.println("ALLOC: " + blockId + " " + _rowTailOffset.get() + " " + _rowTailTop);

      block.free();
    }

    _rowTailOffset.compareAndSet(rowTailOffset, blockId + BLOCK_SIZE);
   
    return blockId;
View Full Code Here

Examples of com.caucho.db.block.Block.free()

          _clockRowUsed++;
      }

      return isFree;
    } finally {
      block.free();
    }
  }

  private boolean isFreeRowBlockIdAvailable()
  {
View Full Code Here

Examples of com.caucho.db.block.Block.free()

          return lookup(keyBuffer, keyOffset, keyLength, value);
      } finally {
        blockLock.unlock();
      }
    } finally {
      block.free();
    }
  }
 
  /**
   * Inserts the new value for the given key.
View Full Code Here

Examples of com.caucho.db.block.Block.free()

        return true;
      else
        return insertWriteChild(keyBuffer, keyOffset, keyLength,
                                value, isOverride, block);
    } finally {
      block.free();
    }
  }

  private boolean insertReadChild(byte []keyBuffer,
                                  int keyOffset,
View Full Code Here

Examples of com.caucho.network.balance.ClientSocket.free()

      boolean isKeepalive = true;
      long startRequestTime = Alarm.getCurrentTime();
     
      if (handleRequest(req, res, stream, out, isKeepalive)) {
        stream.free(startRequestTime);
        stream = null;
      }
    } catch (Exception e) {
      log.log(Level.WARNING, e.toString(), e);
    } finally {
View Full Code Here

Examples of com.caucho.server.cache.TempFileInode.free()

  {
    TempFileInode inode = _inode;
    _inode = null;

    if (inode != null)
      inode.free();
  }

  protected void finalize()
  {
    close();
View Full Code Here

Examples of com.caucho.util.CharBuffer.free()

    cb.append(queryString);
   
    Skeleton skeleton = (Skeleton) _beanMap.get(cb);
   
    if (skeleton != null) {
      cb.free();
      return skeleton;
    }

    skeleton = _protocolContainer.getSkeleton(pathInfo, queryString);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.