8272797: Mutex with rank safepoint_check_never imply allow_vm_block

Reviewed-by: dholmes, pchilanomate
This commit is contained in:
Coleen Phillimore 2021-08-30 14:47:24 +00:00
parent f11e099a14
commit 98b9d98032
40 changed files with 125 additions and 109 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, 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
@ -104,7 +104,7 @@ class CompileTask : public CHeapObj<mtCompiler> {
public:
CompileTask() : _failure_reason(NULL), _failure_reason_on_C_heap(false) {
_lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock");
_lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock", Mutex::_safepoint_check_always);
}
void initialize(int compile_id, const methodHandle& method, int osr_bci, int comp_level,