Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

cosmetics

Wolfgang Hoschekfb8fd8b8ce7a
diff --git a/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java b/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
index 9b7e2edd3b3..9899d361461 100644
--- a/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
+++ b/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
@@ -1108,13 +1108,13 @@ public class MemoryIndex {
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;