catb0t / tart

Automatically exported from code.google.com/p/tart
0 stars 0 forks source link

Define interfaces for object pinning #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We need a way to 'pin' objects in memory so that the collector doesn't move 
them. An example would be buffers for asynchronous i/o, which cannot be 
relocated until the i/o operation is complete. The easiest way to implement 
this would be to have the 'pin' operation immediately relocate the object out 
of the normal heap and into a special heap for pinned objects. This avoids the 
collector having to deal with immovable areas in its normal heap when it is 
doing a compaction cycle.

Original issue reported on code.google.com by viri...@gmail.com on 1 Mar 2011 at 10:51