mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
4670071: loadClassInternal is too restrictive
VM support for deadlock fix. Library fix in 4735126. See API proposal. Reviewed-by: dholmes, blacklion
This commit is contained in:
parent
f05b009ce8
commit
315de68fc0
6 changed files with 138 additions and 66 deletions
|
@ -141,6 +141,7 @@ class java_lang_Class : AllStatic {
|
|||
static void compute_offsets();
|
||||
static bool offsets_computed;
|
||||
static int classRedefinedCount_offset;
|
||||
static int parallelCapable_offset;
|
||||
|
||||
public:
|
||||
// Instance creation
|
||||
|
@ -168,6 +169,8 @@ class java_lang_Class : AllStatic {
|
|||
// Support for classRedefinedCount field
|
||||
static int classRedefinedCount(oop the_class_mirror);
|
||||
static void set_classRedefinedCount(oop the_class_mirror, int value);
|
||||
// Support for parallelCapable field
|
||||
static bool parallelCapable(oop the_class_mirror);
|
||||
// Debugging
|
||||
friend class JavaClasses;
|
||||
friend class instanceKlass; // verification code accesses offsets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue