Filter:

Commits on January 07, 2002

Commits2 commits
0Author
2Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterAdd variants of digest() and hmac() that accept text inputs. Marko Kreen says: This is so obvious that I would like to make it 'official'.
6d6b3e91
master7.2beta5REL_19_STABLE7.2beta5REL_18_STABLE7.2beta5REL_17_STABLE7.2beta5REL_16_STABLE7.2beta5REL_15_STABLE7.2beta5REL_14_STABLE7.2beta5REL_13_STABLE7.2beta5+23 more
No linked threadJan 07, 2002
CommitterTweak LWLock algorithms so that an awakened waiter for a lock is not granted the lock when awakened; the signal now only means that the lock is potentially available. The waiting process must retry its attempt to get the lock when it gets to run. This allows the lock releasing process to re-acquire the lock later in its timeslice. Since LWLocks are usually held for short periods, it is possible for a process to acquire and release the same lock many times in a timeslice. The old spinlock-based implementation of these locks allowed for that; but the original coding of LWLock would force a process swap for each acquisition if there was any contention. Although this approach reopens the door to process starvation (a waiter might repeatedly fail to get the lock), the odds of that being a big problem seem low, and the performance cost of the previous approach is considerable.
5b9a0583
master7.2beta5REL_19_STABLE7.2beta5REL_18_STABLE7.2beta5REL_17_STABLE7.2beta5REL_16_STABLE7.2beta5REL_15_STABLE7.2beta5REL_14_STABLE7.2beta5REL_13_STABLE7.2beta5+23 more
No linked threadJan 07, 2002