[Python-checkins] cpython (3.2): Issue #16335: Fix integer overflow in unicode-escape decoder.

Serhiy Storchaka storchaka at gmail.com
Mon Jan 21 13:08:04 CET 2013


On 21.01.13 12:29, Christian Heimes wrote:
> The test requires a lot of memory on my 64bit Linux box. Two of three
> times the test process was killed by the Kernel's out of memory manager
> although I have 8 GB physical RAM and 4 GB swap. Can you rewrite the
> test to use less memory?

No, I can't. 4 GB needed for bytes object, and 4 or 8 GB (depending on 
platform) additionally needed for its creating. Then unicode-escape 
requires 4*sizeofunicodechar GB (i.e. 4 GB on 3.3+, 8 GB on narrow 
build, 16 GB on wide build) for output buffer. Or may be more or less.

When I used bigmem decorator, test was skipped even on machine with 
enough memory (I were tested on x3 snakebite). Current test was passed.

May be drop this test at all?




More information about the Python-checkins mailing list