Skip to main content
gamedev.net
🔒 Locked

garbage collection program

Started by vaneger Oct 11, 2002 at 12:32 AM 1 replies 150+ views
Original Post
vaneger
vaneger
how can i code a GC for windows? any good site recommendations? also how can i stop overflows from allowing bugs that could comprimise secuirty?
Sneftel
Sneftel
You may want to consider reference-counting for garbage collection. It''s prone to errors if used by itself (circular references can cause objects to become uncollectable), but it''s simple and easy to implement. COM uses reference counting for its GC.

As for preventing overflows: the only way in user space to prevent access violations is to not allow untrusted machine code to be run. Use a VM, and do bounds checking.


Don''t listen to me. I''ve had too much coffee.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.