I'm trying to run Ruby 1.9. The problem I get is a "[FATAL] failed to allocate memory". It seems to be outputed by a xmalloc2. Since Ruby isn't totally initialized, it'd be really strange if we have not enough memory for this. Therefore I belive the problem is in my code.
in my code, and no PSP_HEAP_SIZE_KB macros. Should I do anything else in order to fix that ?
Make sure you do use PSP_HEAP_SIZE_KB (or PSP_HEAP_SIZE_MAX), or your program will be given only the default heap size - I don't know exactly how much that is, but it's not very big.
And yes, the program run longer. It ends somewhere in ruby_thread_init_stack. It really looks like a lack of memory, but I can't understand how this could take as much memory - therefore, I just belive it doesn't...
AFAIK you can't go all the way to 32, since only ~24MB are actually available for programs. Try using 8-16, or if you really need a lot of memory, just use PSP_HEAP_SIZE_MAX, which allocates all available memory for your heap.
AFAIK you can't go all the way to 32, since only ~24MB are actually available for programs. Try using 8-16, or if you really need a lot of memory, just use PSP_HEAP_SIZE_MAX, which allocates all available memory for your heap.
You're better off starting from -256 and heading down.
-256 allocates all but 256kb to your program (some plugins might run in the background blah blah blah)