mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8256754: Deoptimization::revoke_for_object_deoptimization: stack processing start call is redundant
Reviewed-by: dlong, eosterlund
This commit is contained in:
parent
738efea9c6
commit
e77aed624e
4 changed files with 21 additions and 4 deletions
|
@ -63,6 +63,7 @@
|
|||
#include "runtime/handles.inline.hpp"
|
||||
#include "runtime/interfaceSupport.inline.hpp"
|
||||
#include "runtime/jniHandles.inline.hpp"
|
||||
#include "runtime/keepStackGCProcessed.hpp"
|
||||
#include "runtime/objectMonitor.inline.hpp"
|
||||
#include "runtime/safepointVerifiers.hpp"
|
||||
#include "runtime/sharedRuntime.hpp"
|
||||
|
@ -1651,10 +1652,7 @@ void Deoptimization::revoke_for_object_deoptimization(JavaThread* deoptee_thread
|
|||
return;
|
||||
}
|
||||
GrowableArray<Handle>* objects_to_revoke = new GrowableArray<Handle>();
|
||||
if (deoptee_thread != thread) {
|
||||
// Process stack of deoptee thread as we will access oops during object deoptimization.
|
||||
StackWatermarkSet::start_processing(deoptee_thread, StackWatermarkKind::gc);
|
||||
}
|
||||
assert(KeepStackGCProcessedMark::stack_is_kept_gc_processed(deoptee_thread), "must be");
|
||||
// Collect monitors but only those with eliminated locking.
|
||||
get_monitors_from_stack(objects_to_revoke, deoptee_thread, fr, map, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue