cosmetics

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@476060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Wolfgang Hoschek 2006-11-17 06:34:13 +00:00
parent 2d5f3b0c87
commit fb8fd8b8ce
1 changed files with 7 additions and 7 deletions

View File

@ -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;