I'm evaluating the Crystal programming language for real-time, low-latency applications, that can't be interrupted by the garbage collector.
Two questions:
Is it possible to deallocate some class from the heap? For example, in the loop below:
while true
p = Person.new
# do stuff with p
free p # <-------- HERE
end
Is there a flag like -verbose:gc
in Java, that allows us to see everything the GC is doing?
Cheers!
GC.disable
maybe...