* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL
since we are already bounds checked by default. * thread.cc (ResourceLocks::Lock): Streamline this function since it is called a lot. (ReleaseResourceLock): Ditto.
This commit is contained in:
@@ -391,7 +391,7 @@ _open (const char *unix_path, int flags, ...)
|
||||
syscall_printf ("open (%s, %p)", unix_path, flags);
|
||||
if (!check_null_empty_path_errno(unix_path))
|
||||
{
|
||||
SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," open ");
|
||||
SetResourceLock(LOCK_FD_LIST, WRITE_LOCK|READ_LOCK, " open ");
|
||||
|
||||
/* check for optional mode argument */
|
||||
va_start (ap, flags);
|
||||
|
Reference in New Issue
Block a user