]> git.mjollnir.org Git - moodle.git/commit
raise_memory_limit() earlier -- resolves OOM on 64-bit platforms
authormartinlanghoff <martinlanghoff>
Tue, 26 Dec 2006 22:48:36 +0000 (22:48 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 26 Dec 2006 22:48:36 +0000 (22:48 +0000)
commit76f3815be9595b405474310aa200fc9157414231
tree32e3071287e32c4e4ce945391daf169e9c090076
parentb8d4068893b09a5112442f49fd87e8e1512f0f1e
raise_memory_limit() earlier -- resolves OOM on 64-bit platforms

On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.

On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)
lib/moodlelib.php
lib/setup.php
lib/setuplib.php