commit | 94d65255849ce9f195c971f726e8b09449ba4d14 | [log] [tgz] |
---|---|---|
author | buzbee <buzbee@google.com> | Thu Mar 24 16:41:03 2011 -0700 |
committer | buzbee <buzbee@google.com> | Mon Mar 28 18:10:21 2011 -0700 |
tree | 27ac3c63ae47a788acae05e86e227d77886a94d7 | |
parent | 47426b27d1bc59df5a0365ff94c78e9787d615d4 [diff] |
Add safepoint callback for gc This change adds a safepoint callback registration mechanism. On a per-thread (or all-thread) basis, you pass in a function to be called at the next safe point by the target thread. That if that function returns 0, it will be automatically disarmed. If not, the callback will stay in effect and the function will be called on all subsequent safe points. GC is the expected customer of this feature. Change-Id: Icd3b93128b1fd547e142d047a12df7ae8ee646e3