PR# 14581 Last urgent chunk cannot be used

Problem Report Summary
Submitter: prestoat2000
Category: Runtime
Priority: Medium
Date: 2008/07/15
Class: Bug
Severity: Non-critical
Number: 14581
Release: 6.2.75753
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.13) Gecko/20080328 Firefox/2.0.0.13 Solaris 10 on SPARC
Synopsis: Last urgent chunk cannot be used

Description
Based on code inspection only, it appears that the last urgent chunk (in
urgent.c) cannot be used by `uchunk'.  Variable `urgent_index' starts out 
at -1. So allocating 1 urgent chunk sets urgent_chunk to 0 (in `ufill').  
But the test in `uchunk' to see whether there is an urgent chunk available is

   if (urgent_index > 0)

It seems to me that this should be

   if (urgent_index >= 0)

To Reproduce

										
Problem Report Interactions