< prev index next >

src/hotspot/share/runtime/deoptimization.cpp

Print this page
rev 59865 : 8249192: MonitorInfo stores raw oops across safepoints
Summary: Change raw oops in MonitorInfo to Handles and update Resource/HandleMarks.
Reviewed-by: sspitsyn, dholmes, coleenp

*** 1,7 **** - - /* * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it --- 1,5 ----
*** 216,225 **** --- 214,224 ---- } return realloc_failures; } static void eliminate_locks(JavaThread* thread, GrowableArray<compiledVFrame*>* chunk, bool realloc_failures) { + HandleMark hm; #ifndef PRODUCT bool first = true; #endif for (int i = 0; i < chunk->length(); i++) { compiledVFrame* cvf = chunk->at(i);
*** 1540,1549 **** --- 1539,1550 ---- void Deoptimization::revoke_from_deopt_handler(JavaThread* thread, frame fr, RegisterMap* map) { if (!UseBiasedLocking) { return; } + ResourceMark rm; + HandleMark hm; GrowableArray<Handle>* objects_to_revoke = new GrowableArray<Handle>(); get_monitors_from_stack(objects_to_revoke, thread, fr, map); int len = objects_to_revoke->length(); for (int i = 0; i < len; i++) {
< prev index next >