equal
deleted
inserted
replaced
35 //------------------------------------------------------------------------------------------------------------------------ |
35 //------------------------------------------------------------------------------------------------------------------------ |
36 // In order to preserve oops during garbage collection, they should be |
36 // In order to preserve oops during garbage collection, they should be |
37 // allocated and passed around via Handles within the VM. A handle is |
37 // allocated and passed around via Handles within the VM. A handle is |
38 // simply an extra indirection allocated in a thread local handle area. |
38 // simply an extra indirection allocated in a thread local handle area. |
39 // |
39 // |
40 // A handle is a ValueObj, so it can be passed around as a value, can |
40 // A handle is a value object, so it can be passed around as a value, can |
41 // be used as a parameter w/o using &-passing, and can be returned as a |
41 // be used as a parameter w/o using &-passing, and can be returned as a |
42 // return value. |
42 // return value. |
43 // |
43 // |
44 // oop parameters and return types should be Handles whenever feasible. |
44 // oop parameters and return types should be Handles whenever feasible. |
45 // |
45 // |