I am able to implement manual memory management in Ruby.I can allocate
and deallocate the object by myself but The Garbage collector is not
marking nor allocating the object, but its creating the object.
I don't get what you mean.
First off, why would you *want* to allocate and deallocate memory
manually? This is Ruby, not C, you don't have to do that. Having to
keep track of stuff like that manually, is why I was so happy to leave
C behind!
Second, what do you mean by "creating the object" if it's not
"allocating the object"? Maybe you mean setting the fields, but since
memory hasn't been allocated it's trying to do it at address zero, or
some address that's whatever random garbage happened to be in the
pointer?
Third, what is "it", that's creating the object? The GC certainly
shouldn't be doing that.
Does it causing any memory leak?
Can't tell yet until I have a clearer picture of what it's doing. But
since the probability is so high, see Question One.
-Dave
···
On Mon, Nov 28, 2011 at 21:08, Tridib Bandopadhyay <tridib04@gmail.com> wrote:
--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)