You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by wh...@apache.org on 2006/11/17 07:34:14 UTC
svn commit: r476060 -
/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
Author: whoschek
Date: Thu Nov 16 22:34:13 2006
New Revision: 476060
URL: http://svn.apache.org/viewvc?view=rev&rev=476060
Log:
cosmetics
Modified:
lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java?view=diff&rev=476060&r1=476059&r2=476060
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java (original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java Thu Nov 16 22:34:13 2006
@@ -1108,13 +1108,13 @@
private static final int HEADER = 2*PTR;
/**
- * Modern VMs tend to trade space for time, allocating memory in chunks that
- * are multiples of the word size (where word size is 4 or 8 bytes). For
- * example, on a 64 bit VM, the variables of a class with one 32 bit integer
- * and one Java char really consume 8 bytes instead of 6 bytes. 2 bytes are
- * spent on padding. Similary, on a 64 bit VM a java.lang.Integer consumes
- * OBJECT_HEADER + 8 bytes rather than OBJECT_HEADER + 4 bytes.
- */
+ * Modern VMs tend to trade space for time, allocating memory on word
+ * boundaries. For example, on a 64 bit VM, the variables of a class with
+ * one 32 bit integer and one Java char really consume 8 bytes instead of 6
+ * bytes. 2 bytes are spent on padding. Similary, on a 64 bit VM a
+ * java.lang.Integer consumes OBJECT_HEADER + 8 bytes rather than
+ * OBJECT_HEADER + 4 bytes.
+ */
private static final boolean IS_WORD_ALIGNED_VM = true;