Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-4-0] src/common/lib/libprop



Module Name:    src
Committed By:   snj
Date:           Sun Nov 30 23:53:04 UTC 2008

Modified Files:
        src/common/lib/libprop [netbsd-4-0]: prop_dictionary.c prop_number.c
            prop_object.c prop_object_impl.h

Log Message:
Pull up following revision(s) (requested by haad in ticket #1243):
        common/lib/libprop/prop_dictionary.c: revision 1.33
        common/lib/libprop/prop_number.c: revision 1.20
        common/lib/libprop/prop_object.c: revision 1.23 via patch
        common/lib/libprop/prop_object_impl.h: revision 1.28
Fix two race conditions in proplib library. In prop_dictionary and
prop_number there was small window in which was entry left in rb tree
with reference count 0 which lead to rb tree coruption when another
thread picked this up before it was released.
Add 2 new members to the prop_object_t which are used for locking/unlocking
rb tree guard mutex.
Ok by joerg@, core@, thorpej@


To generate a diff of this commit:
cvs rdiff -r1.16.4.1 -r1.16.4.1.2.1 src/common/lib/libprop/prop_dictionary.c
cvs rdiff -r1.11.4.1 -r1.11.4.1.2.1 src/common/lib/libprop/prop_number.c \
    src/common/lib/libprop/prop_object_impl.h
cvs rdiff -r1.12.4.1 -r1.12.4.1.2.1 src/common/lib/libprop/prop_object.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index