摘要 |
A computer implemented method, data processing system, and computer program product for detecting circular buffer overrun in a credit-based data management system, wherein the system comprises a total credit exchange amount of at least one less than the total number of entries in a circular buffer. When data in a data item entry is processed in the circular buffer, a valid mark bit is set in the data item entry to an inactive state. A location of the data item entry previously processed is then stored. A valid mark bit of a next data item entry in the circular buffer and the valid mark bit in the data item entry previously processed are read. Responsive to a determination that the valid mark bit in the data item entry previously processed indicates the data item entry contains data to be processed, an indication may be generated that a circular buffer overflow has occurred.
|