From: Suraj Kurapati Date: 2006-02-19T16:31:26+09:00 Subject: Re: maximum number of module methods? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Suraj Kurapati wrote: > Maybe I'm starting the Ruby interpreter incorrectly: This is not the case, because of the following experiments: 1. I added lots of extra print-inspect (p "foo") statements in the Ruby script-file that is executed by the Ruby interpreter, and a SystemStackError occurred. 2. I added four extra module functions to the VPI module and kept only one statement (p "foo") in the entire Ruby script-file that is executed by the Ruby interpreter, and a SystemStackError occurred. It seems that when the Ruby interpreter is embedded in my C program, its heap is very limited (compared to when it is run as a single process at the command-line `ruby`). As a result, I think that when the Ruby interpreter tries to keep its state (modules, classes, methods, variables, etc.) in the heap like it does normally, it runs out of space and gives a SystemStackError. Is there a way I can check how much heap space is available to the Ruby interpreter? How about increasing the heap space? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD+B4hmV9O7RYnKMcRAvbzAJ9I6RPfOyrbniXPBClFcxzSvP75aACggmFR MpVeiP9k1JSgea+Qs5oxNmY= =jhNt -----END PGP SIGNATURE-----