Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parallelScavenge/psTasks.cpp @ 20259:4af19b914f53
8035393: Use CLDClosure instead of CLDToOopClosure in frame::oops_interpreted_do
Reviewed-by: tschatzl, coleenp
author | stefank |
---|---|
date | Fri, 21 Feb 2014 10:01:20 +0100 |
parents | 55fb97c4c58d |
children | 4ca6dc0799b6 2c6ef90f030a |
comparison
equal
deleted
inserted
replaced
20258:64ac9c55d666 | 20259:4af19b914f53 |
---|---|
63 break; | 63 break; |
64 | 64 |
65 case threads: | 65 case threads: |
66 { | 66 { |
67 ResourceMark rm; | 67 ResourceMark rm; |
68 CLDToOopClosure* cld_closure = NULL; // Not needed. All CLDs are already visited. | 68 CLDClosure* cld_closure = NULL; // Not needed. All CLDs are already visited. |
69 Threads::oops_do(&roots_closure, cld_closure, NULL); | 69 Threads::oops_do(&roots_closure, cld_closure, NULL); |
70 } | 70 } |
71 break; | 71 break; |
72 | 72 |
73 case object_synchronizer: | 73 case object_synchronizer: |
120 void ThreadRootsTask::do_it(GCTaskManager* manager, uint which) { | 120 void ThreadRootsTask::do_it(GCTaskManager* manager, uint which) { |
121 assert(Universe::heap()->is_gc_active(), "called outside gc"); | 121 assert(Universe::heap()->is_gc_active(), "called outside gc"); |
122 | 122 |
123 PSPromotionManager* pm = PSPromotionManager::gc_thread_promotion_manager(which); | 123 PSPromotionManager* pm = PSPromotionManager::gc_thread_promotion_manager(which); |
124 PSScavengeRootsClosure roots_closure(pm); | 124 PSScavengeRootsClosure roots_closure(pm); |
125 CLDToOopClosure* roots_from_clds = NULL; // Not needed. All CLDs are already visited. | 125 CLDClosure* roots_from_clds = NULL; // Not needed. All CLDs are already visited. |
126 CodeBlobToOopClosure roots_in_blobs(&roots_closure, /*do_marking=*/ true); | 126 CodeBlobToOopClosure roots_in_blobs(&roots_closure, /*do_marking=*/ true); |
127 | 127 |
128 if (_java_thread != NULL) | 128 if (_java_thread != NULL) |
129 _java_thread->oops_do(&roots_closure, roots_from_clds, &roots_in_blobs); | 129 _java_thread->oops_do(&roots_closure, roots_from_clds, &roots_in_blobs); |
130 | 130 |