Back-port critical soft heap limit fixes to version 3.3.17.  The following
check-ins were back-ported: (4031), (4037), (4097), (4202), (4203),
(4207), (4208), (4214). (CVS 4222)