ruby/ext
normal cc9b57a2b4 zlib (gzfile_write_raw): do not resize string after .write call
Apparently, a component of Rails implements a buffering .write
method which keeps the String buffer around and makes it unsafe
for us to clear it after calling .write.

This caused Rack::Deflater to give empty results when enabled.

Fortunately, per r61631 / a55abcc0ca,
this misguided optimization was only worth a small (0.5MB) savings
and we still benefit from the majority of the memory savings in
that change.

Thanks to zunda for the bug report.

[ruby-core:90133] [Bug #15356]

Fixes: r61631 (commit a55abcc0ca)
       ("zlib: reduce garbage on gzip writes (deflate)")

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-07 07:09:31 +00:00
..
-test- Add more assertions for NotImplementedError of instance method 2018-08-21 14:57:56 +00:00
bigdecimal Import bigdecimal 1.4.0.pre.20181205a 2018-12-05 11:30:24 +00:00
cgi/escape Revert "ext/cgi/escape: preserve String subclass in result" 2018-05-03 01:24:09 +00:00
continuation
coverage * expand tabs. 2018-10-20 05:33:13 +00:00
date date_core.c: use static ID variables 2018-11-13 04:51:46 +00:00
dbm Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
digest no ID cache in Init functions 2018-02-16 08:39:48 +00:00
etc Retry r65211. 2018-10-20 10:30:42 +00:00
fcntl Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
fiber
fiddle fix typo. 2018-10-20 07:40:45 +00:00
gdbm Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
io io/console: drop 2.1.0 support [ci skip] 2018-03-02 11:24:29 +00:00
json Fix JSON::Parser against bigdecimal updates 2018-12-02 05:21:57 +00:00
nkf
objspace support theap for T_HASH. [Feature #14989] 2018-10-30 22:11:51 +00:00
openssl errno.h must be included after config.h because config.h might define 2018-11-21 20:39:09 +00:00
pathname Pathname: Have #relative_path_from accept String argument. 2018-11-13 06:20:06 +00:00
psych Merge upstream from ruby/psych 2018-12-04 12:24:12 +00:00
pty [doc] Fix grammar typo in Pty_init() docstring [ci skip] 2018-11-16 04:25:07 +00:00
racc/cparse
rbconfig/sizeof
readline readline.c: improve docs 2018-10-12 20:37:30 +00:00
ripper Use delete_prefix instead of `sub(/\Afixed-pattern/, '')` 2018-12-04 08:22:10 +00:00
rubyvm
sdbm Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
socket disable non-blocking pipes and sockets by default 2018-11-29 20:00:00 +00:00
stringio Merge stringio.gemspec from github repository. 2018-11-28 02:38:29 +00:00
strscan Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
syslog no ID cache in Init functions 2018-02-16 08:39:48 +00:00
win32 Win32API.rb: use uplevel option to warn 2018-04-02 12:39:01 +00:00
win32ole Fix call-seq of OpenSSL.fips_mode and WIN32OLE_METHOD#name [ci skip] 2018-11-01 07:25:50 +00:00
zlib zlib (gzfile_write_raw): do not resize string after .write call 2018-12-07 07:09:31 +00:00
.document
Setup
Setup.atheos
Setup.nt
extmk.rb Let sub-directory exts depend on their parent ext 2018-12-01 09:29:14 +00:00