PersistentByteMap.java (name, values, fc): new fields.
authorAndrew Haley <aph@redhat.com>
Wed, 16 Feb 2005 17:32:59 +0000 (17:32 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Wed, 16 Feb 2005 17:32:59 +0000 (17:32 +0000)
commitd2638db6537096c72a93d820748b2b9d3bba88ab
tree0a54e6a6ed598b92c4838adeed72f8de693319f9
parent5fcfe0b28b4caae66a7bfe2483a4acb2d53e277f
PersistentByteMap.java (name, values, fc): new fields.

2005-02-16  Andrew Haley  <aph@redhat.com>

        * gnu/gcj/runtime/PersistentByteMap.java (name, values, fc): new
        fields.
        (PersistentByteMap): Set name
        Magic number changed to 0x67636a64 ("gcjd").
        (init): Force the map to be prime.
        (emptyPersistentByteMap): File name was a string, now a File.
        (addBytes): Share srings between entries.
        (stringTableSize): New method.
        (capacity): Scale by load factor.
        (force): New method.
        (getFile): New method.
        (close): New method.
        (putAll): New method.
        (ByteWrapper): New class.
        * gnu/gcj/tools/gcj_dbtool/Main.java (verbose): New field.
        (main): Guess the average string size as 32, not 64.
        Copy a database before modifying it, so that we can update a
        database in a running system.
        If a database isn't big enough, resize it.
        "-m": new option: merges databases.
        "-a": Create a new detabase if it doesn't exist.
        (usage): Correct, add new option.
        (addJar): Copy a database before modifying it.
        (resizeMap): New method.

From-SVN: r95110
libjava/ChangeLog
libjava/gnu/gcj/runtime/PersistentByteMap.java
libjava/gnu/gcj/tools/gcj_dbtool/Main.java