mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8306851: Move Method access flags
Reviewed-by: cjplummer, dholmes, dnsimon, matsaave, fparain
This commit is contained in:
parent
a6b4f25bd5
commit
316d303c1d
27 changed files with 483 additions and 464 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, 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
|
||||
|
@ -27,27 +27,6 @@
|
|||
#include "runtime/atomic.hpp"
|
||||
#include "utilities/accessFlags.hpp"
|
||||
|
||||
void AccessFlags::atomic_set_bits(jint bits) {
|
||||
// Atomically update the flags with the bits given
|
||||
jint old_flags, new_flags, f;
|
||||
do {
|
||||
old_flags = _flags;
|
||||
new_flags = old_flags | bits;
|
||||
f = Atomic::cmpxchg(&_flags, old_flags, new_flags);
|
||||
} while(f != old_flags);
|
||||
}
|
||||
|
||||
void AccessFlags::atomic_clear_bits(jint bits) {
|
||||
// Atomically update the flags with the bits given
|
||||
jint old_flags, new_flags, f;
|
||||
do {
|
||||
old_flags = _flags;
|
||||
new_flags = old_flags & ~bits;
|
||||
f = Atomic::cmpxchg(&_flags, old_flags, new_flags);
|
||||
} while(f != old_flags);
|
||||
}
|
||||
|
||||
|
||||
#if !defined(PRODUCT) || INCLUDE_JVMTI
|
||||
|
||||
void AccessFlags::print_on(outputStream* st) const {
|
||||
|
@ -63,9 +42,6 @@ void AccessFlags::print_on(outputStream* st) const {
|
|||
if (is_interface ()) st->print("interface " );
|
||||
if (is_abstract ()) st->print("abstract " );
|
||||
if (is_synthetic ()) st->print("synthetic " );
|
||||
if (is_old ()) st->print("{old} " );
|
||||
if (is_obsolete ()) st->print("{obsolete} " );
|
||||
if (on_stack ()) st->print("{on_stack} " );
|
||||
}
|
||||
|
||||
#endif // !PRODUCT || INCLUDE_JVMTI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue