3124 // Other kinds of roots maintained by HotSpot |
3124 // Other kinds of roots maintained by HotSpot |
3125 // Many of these won't be visible but others (such as instances of important |
3125 // Many of these won't be visible but others (such as instances of important |
3126 // exceptions) will be visible. |
3126 // exceptions) will be visible. |
3127 blk.set_kind(JVMTI_HEAP_REFERENCE_OTHER); |
3127 blk.set_kind(JVMTI_HEAP_REFERENCE_OTHER); |
3128 Universe::oops_do(&blk); |
3128 Universe::oops_do(&blk); |
|
3129 |
|
3130 // If there are any non-perm roots in the code cache, visit them. |
|
3131 blk.set_kind(JVMTI_HEAP_REFERENCE_OTHER); |
|
3132 CodeBlobToOopClosure look_in_blobs(&blk, false); |
|
3133 CodeCache::scavenge_root_nmethods_do(&look_in_blobs); |
|
3134 |
3129 return true; |
3135 return true; |
3130 } |
3136 } |
3131 |
3137 |
3132 // Walk the stack of a given thread and find all references (locals |
3138 // Walk the stack of a given thread and find all references (locals |
3133 // and JNI calls) and report these as stack references |
3139 // and JNI calls) and report these as stack references |