Commit Graph

68 Commits

Author SHA1 Message Date
James Laird
8fa9daa174 [svn-r13143] Refactoring.
Added can_share callback for OH messages.  This determines whether the
message is allowed to be shared in the heap (committed and immutable datatypes
can't be).
Fixed a bug in the dense attribute storage that tried to open the shared message
heap when it hadn't been created yet.
Made the test to extend shared dataspace messages a bit more robust.
Refactored the code the searches a shared message list index to be a little
more efficient.
A few other minor changes.

Tested on smirom, kagiso, Windows, and juniper.
2007-01-16 12:19:11 -05:00
James Laird
d8e4fcc410 [svn-r13135] Continuing code cleanup.
Moved SOHM table version out of table encoding and completely into superblock.
This is a file format change.
Added test that extends shared dataspaces.  Dynamically allocate arrays in
shared message cache code.  Clean up comments.

Tested on windows, kagiso, smirom.
2007-01-11 14:19:40 -05:00
James Laird
6e40802f06 [svn-r13126] More cleanup. Shared messages now use in-heap callbacks when searching
for a matching message, which should improve performance.

Tested on Windows, kagiso, and smirom.
2007-01-09 10:11:16 -05:00
James Laird
77a2e54459 [svn-r13119] More code cleanup. Made shared messages zero-indexed instead of
one-indexed.  Changed the names of some constants to be more consistent.

Tested on juniper, smirom, and copper.
2007-01-08 09:54:12 -05:00
James Laird
869ed6e043 [svn-r13113] Refactoring. Cleaned up code, added a few sanity checks.
Extracted duplicated code into functions.

Tested on Windows, juniper, and kagiso.  Will test on copper next.
2007-01-05 13:30:59 -05:00
James Laird
ec1b0dfda6 [svn-r13108] Cleaned up some warnings.
Tested on kagiso; I have another checkin coming, after which I'll run more
extensive tests.  Changes are pretty minor.
2007-01-05 12:59:04 -05:00
James Laird
75121771bb [svn-r13107] Fixed shared message indexes to clean themselves up when they're deleted.
Creating shared messages and then deleting them should return the file to its
original state.

Added a test for this.

Tested on Windows, smirom, and kagiso.
2007-01-04 11:39:39 -05:00
James Laird
11af96e867 [svn-r13102] Found a bug: shared message list sizes above the maximum were not caught.
Fixed bug and a related one where the number of indexes could be set
above the maximum.

Added tests for both bugs.

Tested on kagiso and smirom.
2007-01-03 12:48:51 -05:00
James Laird
2d42a6277c [svn-r13087] Added a small test to check that SOHMs work fine when using external links. They do.
Tested on smirom, kagiso, and Windows.
2006-12-22 15:56:36 -05:00
James Laird
b1c318eebe [svn-r13086] Added deletion test for shared messages. I'm not sure that this test is
as complete as it could be, so I may add to it later.

Fixed a bug in reference counting messages that are referenced by shared
messages (attribute datatypes and dataspaces).

Tested on mir, smirom, and Windows.
2006-12-22 13:23:08 -05:00
Elena Pourmal
79c17d54cc [svn-r13083] Description:
VMS maintenance: updated command file with the new source files;
        sohm test was failing on VMS due to upper case/lower case letters in 
        constant and variable names (i.e. FILENAME vs. filename); modified the test
        to avoid confusion.

Platforms tested:
	VMS server, kagiso
2006-12-20 16:10:06 -05:00
Quincey Koziol
978c9c9d93 [svn-r13034] Description:
Take out separate memory type in the file for SOHM objects and create
aliases for existing memory types for SOHM use.

Tested on:
    FreeBSD/32 4.11 (sleipnir)
2006-12-08 14:44:20 -05:00
James Laird
786af4b8d7 [svn-r13013] Cleaned up some mismatched types in test/tsohm.c that were causing
errors on tg-login3.

Tested on tg-login3.
2006-12-03 10:57:43 -05:00
James Laird
772730f4d7 [svn-r13004] Much improved shared object header message test, along with some bug fixes
to make the test pass.

These changes involve changes to the file format of SOHMs, but that's okay
because nobody should have been using SOHMs yet anyway.

Tested on Windows, kagiso, copper, and heping
2006-12-01 10:51:42 -05:00
James Laird
8d9964cf02 [svn-r12951] Fixed error on copper in 64-bit. Was using size_t when I should have been
using unsigned.

Tested on copper; minor change.  Currently testing on juniper.
2006-11-20 11:12:45 -05:00
Quincey Koziol
b2acbc56c6 [svn-r12938] Description:
Add src/H5Oalloc.c file forgotten in previous object header checkin

    Break out more object header routines into separate file (debugging routines
this time).

    Fix "//" style comment in recent ISOHM source changes.

    Fix 'size_t' vs. 'unsigned' problem (visible in 64-bit testing) in recent
ISOHM test changes.

Tested on:
    FreeBSD/32 4.11 (sleipnir)
    Linux/32 2.4 (heping)
    Linux/64 2.4 (mir)
2006-11-17 15:12:28 -05:00
James Laird
e215d22a79 [svn-r12935] Added list-to-btree conversion, changed SOHM apis, and pushed SOHM table
version and size information into the superblock to eliminate a read when
loading it.

This is a file format change, and hopefully the last one (knock on wood).

Tested on kagiso and Windows (mostly just a SOHM change).
2006-11-17 14:39:14 -05:00
James Laird
3f7dc01ccc [svn-r12905] Added test/tsohm.c, which was missed in the previous checkin. Oops! 2006-11-13 16:17:41 -05:00