8251118: BiasedLocking::preserve_marks should not have a HandleMark

Removed HandleMark from BiasedLocking::preserve_marks() method

Reviewed-by: hseigel, coleenp, dcubed, tschatzl, dholmes
This commit is contained in:
Patricio Chilano Mateo 2020-08-13 15:42:41 +00:00
parent 19a08080e4
commit 12ae68b197
3 changed files with 3 additions and 3 deletions

View File

@ -908,7 +908,6 @@ void BiasedLocking::preserve_marks() {
Thread* cur = Thread::current();
ResourceMark rm(cur);
HandleMark hm(cur);
for (JavaThreadIteratorWithHandle jtiwh; JavaThread *thread = jtiwh.next(); ) {
if (thread->has_last_Java_frame()) {

View File

@ -30,7 +30,7 @@
#include "code/location.hpp"
#include "oops/oop.hpp"
#include "runtime/frame.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/handles.hpp"
#include "runtime/stackValue.hpp"
#include "runtime/stackValueCollection.hpp"
#include "utilities/growableArray.hpp"

View File

@ -25,10 +25,11 @@ package gc;
/*
* @test TestFullGCALot
* @bug 4187687 8187819
* @bug 4187687 8187819 8251118
* @summary Ensure no access violation when using FullGCALot
* @requires vm.debug
* @run main/othervm -XX:NewSize=10m -XX:+FullGCALot -XX:FullGCALotInterval=120 gc.TestFullGCALot
* @run main/othervm -XX:NewSize=10m -XX:+FullGCALot -XX:FullGCALotInterval=120 -XX:+UseBiasedLocking gc.TestFullGCALot
*/
public class TestFullGCALot {