lookupclassentry - bug?
Godmar Back
gback at cs.utah.edu
Wed Nov 18 08:01:47 PST 1998
>
> Why is the classHashLock that gets aquired here not unlocked when the lock
> is found in the classEntryPool? This shouldn't happen very often, but if it
> does, Kaffe should hang.
>
> am I right about that?
>
You are. This bug was fixed Oct 30.
- Godmar
> Enno.
>
> /* Lock the class table and insert entry into it (if not already
> there) */
> lockStaticMutex(&classHashLock);
>
> entryp = &classEntryPool[hashClassName(name) & (CLASSHASHSZ-1)];
> for (; *entryp != 0; entryp = &(*entryp)->next) {
> if (equalUtf8Consts(name, (*entryp)->name) && loader ==
> (*entryp)->loader) {
> /* Someone else added it - discard ours and return
> the new one. */
> gc_free_fixed(entry);
> return (*entryp);
>
>
>
More information about the kaffe
mailing list