gecko/netwerk
Nicholas Nethercote 550d0cf346 Bug 1124973 (part 3) - Use PL_DHashTableSearch() in nsHostResolver.cpp. r=froydnj,sworkman.
Currently nsHostResolver.cpp uses PL_DHashTableLookup() and fails to use
PL_DHASH_ENTRY_IS_{FREE,BUSY} on the result the way it should. However, I think
it gets away with this because it always does this on the result:

  if (!he || !he->rec) { /* do stuff with |he->rec| */ }

The |!he| test is useless and always fails, but the |!he->rec| does the right
thing because (a) entry storage is always zeroed when the table is created, (b)
HostDB_ClearEntry() zeroes the |rec| field (via NS_RELEASE). So unused entries
always have a null |rec| field.

Furthermore, |he->rec| is never zero in a used entry because HostDB_InitEntry
always assigns it with a nsHostRecord assigned with infallible new in
nsHostRecord::Create (and there are existing assertions to this effect).

All this means that when this patch switches PL_DHashTableLookup to
PL_DHashTableSearch it can drop the |!he->rec| test and just do this:

  if (!he) { /* do stuff with |he->rec| */ }

Finally, there's a comment about HostDB_InitEntry failing which is bogus
because HostDB_InitEntry cannot fail. This patch fixes that too.
2015-01-22 21:25:44 -08:00
..
base Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj. 2015-01-22 21:06:55 -08:00
build Bug 1100184 - Use absolute paths in /network local includes. r=gps 2015-01-16 20:41:06 +10:30
cache Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj. 2015-01-22 21:06:55 -08:00
cache2 Bug 1119406 - HTTP cache v2: Doom cache entry when writing of metadata fails, r=honzab 2015-01-27 15:50:18 +01:00
cookie Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo 2015-01-08 23:19:05 -05:00
dns Bug 1124973 (part 3) - Use PL_DHashTableSearch() in nsHostResolver.cpp. r=froydnj,sworkman. 2015-01-22 21:25:44 -08:00
ipc Bug 1100184 - Use absolute paths in /network local includes. r=gps 2015-01-16 20:41:06 +10:30
locales Bug 1079338 - Log resources blocked by tracking protection. r=mcmanus,mmc,dcamp 2014-10-10 12:19:14 -07:00
mime Bug 1080484 - Support avi/divx, ts/m2ts, and mkv media formats. r=cajbir 2014-12-23 10:20:25 +08:00
protocol Bug 1125372 - use nsISupports as first param of asyncResolve instead of switching wholesale from nsIURI to nsIChannel, for improved add-on compat, r=mcmanus 2015-01-27 21:30:49 +00:00
sctp Backed out 12 changesets (bug 1118398, bug 1119593) for zmedia failures 2015-01-27 16:56:02 -08:00
socket Bug 952863, Part 2: Remove dead code for non-ECDHE TLS False Start, r=keeler 2014-12-10 10:13:18 -08:00
srtp Bug 1123527 - Fix syntax error when ERR_REPORTING_SYSLOG is defined. r=jesup. 2015-01-21 22:21:31 -08:00
streamconv Bug 1100184 - Flatten netwerk/base/{public,src}/ directories. r=mcmanus, r=poiru 2015-01-20 03:58:00 -05:00
system Bug 1100184 - Use absolute paths in /network local includes. r=gps 2015-01-16 20:41:06 +10:30
test Bug 1125372 - use nsISupports as first param of asyncResolve instead of switching wholesale from nsIURI to nsIChannel, for improved add-on compat, r=mcmanus 2015-01-27 21:30:49 +00:00
wifi Bug 1103858 - Enable FreeBSD wifi scanner on DragonFly. r=ted, r=jdm 2014-11-24 00:10:00 -05:00
Makefile.in
moz.build
necko-config.h.in