OLD | NEW |
---|---|
(Empty) | |
1 // Returns a GCObservation object for the object returned by the | |
rmcilroy
2016/05/13 11:21:08
Add copyright notice.
mythria
2016/05/16 09:27:57
As discussed offline. We don't need it here.
| |
2 // getObjectToObserve function. This is intended to help in observing if a GC | |
3 // has succesfully collected the object. When using interpreter (--ignition | |
4 // flag), dead registers are not cleared. The object that is passed to observeGC | |
5 // might be held in a dead register, preventing GC from collecting it. To avoid | |
rmcilroy
2016/05/13 11:21:08
The "register" terminology is to technical to unde
mythria
2016/05/16 09:27:57
Done.
| |
6 // this, a function that returns the object is passed as a parameter instead of | |
7 // the object itself. Registers are released on function return. | |
8 function observeGC(getObjectToObserve) { | |
9 return internals.observeGC(getObjectToObserve()); | |
10 } | |
OLD | NEW |