mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
8140348: Convert TraceSafepoint to Unified Logging
The former -XX:+TraceSafepoint flag is updated to the unified logging framework and is now replaced with -Xlog:safepoint in product mode. Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
9adaaa0c96
commit
e54bd838f9
7 changed files with 142 additions and 29 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "code/vtableStubs.hpp"
|
||||
#include "gc/shared/vmGCOperations.hpp"
|
||||
#include "interpreter/interpreter.hpp"
|
||||
#include "logging/log.hpp"
|
||||
#include "memory/allocation.inline.hpp"
|
||||
#ifdef ASSERT
|
||||
#include "memory/guardedMemory.hpp"
|
||||
|
@ -1363,9 +1364,8 @@ static volatile intptr_t SerializePageLock = 0;
|
|||
// thread tries to store to the "read-only" memory serialize page during state
|
||||
// transition.
|
||||
void os::block_on_serialize_page_trap() {
|
||||
if (TraceSafepoint) {
|
||||
tty->print_cr("Block until the serialize page permission restored");
|
||||
}
|
||||
log_debug(safepoint)("Block until the serialize page permission restored");
|
||||
|
||||
// When VMThread is holding the SerializePageLock during modifying the
|
||||
// access permission of the memory serialize page, the following call
|
||||
// will block until the permission of that page is restored to rw.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue