Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/vm_operations.cpp @ 5110:0ebca2e35ca5
more preparations for disabling runtime feedback selectively based on deoptimization history
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 15 Mar 2012 15:31:34 -0700 |
parents | f08d439fab8c |
children | 422c979ff392 |
comparison
equal
deleted
inserted
replaced
5109:6766253384bf | 5110:0ebca2e35ca5 |
---|---|
115 // Make the dependent methods zombies | 115 // Make the dependent methods zombies |
116 CodeCache::make_marked_nmethods_zombies(); | 116 CodeCache::make_marked_nmethods_zombies(); |
117 } | 117 } |
118 | 118 |
119 | 119 |
120 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id) { | 120 VM_DeoptimizeFrame::VM_DeoptimizeFrame(JavaThread* thread, intptr_t* id, int reason) { |
121 _thread = thread; | 121 _thread = thread; |
122 _id = id; | 122 _id = id; |
123 _reason = reason; | |
123 } | 124 } |
124 | 125 |
125 | 126 |
126 void VM_DeoptimizeFrame::doit() { | 127 void VM_DeoptimizeFrame::doit() { |
127 Deoptimization::deoptimize_frame_internal(_thread, _id); | 128 assert(_reason > Deoptimization::Reason_none && _reason < Deoptimization::DeoptReason.Reason_LIMIT, "invalid deopt reason"); |
129 Deoptimization::deoptimize_frame_internal(_thread, _id, (Deoptimization::DeoptReason)_reason); | |
128 } | 130 } |
129 | 131 |
130 | 132 |
131 #ifndef PRODUCT | 133 #ifndef PRODUCT |
132 | 134 |