mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8284161: Implementation of Virtual Threads (Preview)
Co-authored-by: Ron Pressler <rpressler@openjdk.org> Co-authored-by: Alan Bateman <alanb@openjdk.org> Co-authored-by: Erik Österlund <eosterlund@openjdk.org> Co-authored-by: Andrew Haley <aph@openjdk.org> Co-authored-by: Rickard Bäckman <rbackman@openjdk.org> Co-authored-by: Markus Grönlund <mgronlun@openjdk.org> Co-authored-by: Leonid Mesnik <lmesnik@openjdk.org> Co-authored-by: Serguei Spitsyn <sspitsyn@openjdk.org> Co-authored-by: Chris Plummer <cjplummer@openjdk.org> Co-authored-by: Coleen Phillimore <coleenp@openjdk.org> Co-authored-by: Robbin Ehn <rehn@openjdk.org> Co-authored-by: Stefan Karlsson <stefank@openjdk.org> Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org> Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org> Reviewed-by: lancea, eosterlund, rehn, sspitsyn, stefank, tschatzl, dfuchs, lmesnik, dcubed, kevinw, amenkov, dlong, mchung, psandoz, bpb, coleenp, smarks, egahlin, mseledtsov, coffeys, darcy
This commit is contained in:
parent
5212535a27
commit
9583e3657e
1133 changed files with 95935 additions and 8335 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, 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
|
||||
|
@ -35,11 +35,16 @@
|
|||
#include "oops/verifyOopClosure.hpp"
|
||||
#include "runtime/handles.inline.hpp"
|
||||
#include "runtime/thread.inline.hpp"
|
||||
#include "utilities/copy.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
|
||||
void oopDesc::print_on(outputStream* st) const {
|
||||
klass()->oop_print_on(const_cast<oopDesc*>(this), st);
|
||||
if (*((juint*)this) == badHeapWordVal) {
|
||||
st->print("BAD WORD");
|
||||
} else if (*((juint*)this) == badMetaWordVal) {
|
||||
st->print("BAD META WORD");
|
||||
} else {
|
||||
klass()->oop_print_on(cast_to_oop(this), st);
|
||||
}
|
||||
}
|
||||
|
||||
void oopDesc::print_address_on(outputStream* st) const {
|
||||
|
@ -136,6 +141,7 @@ void VerifyOopClosure::do_oop(narrowOop* p) { VerifyOopClosure::do_oop_work(p);
|
|||
// type test operations that doesn't require inclusion of oop.inline.hpp.
|
||||
bool oopDesc::is_instance_noinline() const { return is_instance(); }
|
||||
bool oopDesc::is_instanceRef_noinline() const { return is_instanceRef(); }
|
||||
bool oopDesc::is_stackChunk_noinline() const { return is_stackChunk(); }
|
||||
bool oopDesc::is_array_noinline() const { return is_array(); }
|
||||
bool oopDesc::is_objArray_noinline() const { return is_objArray(); }
|
||||
bool oopDesc::is_typeArray_noinline() const { return is_typeArray(); }
|
||||
|
@ -224,6 +230,12 @@ void oopDesc::verify_forwardee(oop forwardee) {
|
|||
#endif
|
||||
}
|
||||
|
||||
bool oopDesc::get_UseParallelGC() { return UseParallelGC; }
|
||||
bool oopDesc::get_UseG1GC() { return UseG1GC; }
|
||||
bool oopDesc::size_might_change() {
|
||||
// UseParallelGC and UseG1GC can change the length field
|
||||
// of an "old copy" of an object array in the young gen so it indicates
|
||||
// the grey portion of an already copied array. This will cause the first
|
||||
// disjunct below to fail if the two comparands are computed across such
|
||||
// a concurrent change.
|
||||
return Universe::heap()->is_gc_active() && is_objArray() && is_forwarded() && (UseParallelGC || UseG1GC);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue