Skip to content
Permalink
Browse files
8278020: ~13% variation in Renaissance-Scrabble
Reviewed-by: dholmes, stuefe, kvn
  • Loading branch information
iklam committed Dec 15, 2021
1 parent 04dbdd3 commit 4ba980ba439f94a6b5015e64382a6c308476d63f
Showing 1 changed file with 6 additions and 3 deletions.
@@ -117,8 +117,8 @@ class Klass : public Metadata {
// Klass identifier used to implement devirtualized oop closure dispatching.
const KlassID _id;

// vtable length
int _vtable_len;
// Processed access flags, for use by Class.getModifiers.
jint _modifier_flags;

// The fields _super_check_offset, _secondary_super_cache, _secondary_supers
// and _primary_supers all help make fast subtype checks. See big discussion
@@ -154,7 +154,10 @@ class Klass : public Metadata {
// Provide access the corresponding instance java.lang.ClassLoader.
ClassLoaderData* _class_loader_data;

jint _modifier_flags; // Processed access flags, for use by Class.getModifiers.
int _vtable_len; // vtable length. This field may be read very often when we
// have lots of itable dispatches (e.g., lambdas and streams).
// Keep it away from the beginning of a Klass to avoid cacheline
// contention that may happen when a nearby object is modified.
AccessFlags _access_flags; // Access flags. The class/interface distinction is stored here.

JFR_ONLY(DEFINE_TRACE_ID_FIELD;)

3 comments on commit 4ba980b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 4ba980b Dec 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iklam
Copy link
Member Author

@iklam iklam commented on 4ba980b Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk18

@openjdk
Copy link

@openjdk openjdk bot commented on 4ba980b Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iklam the backport was successfully created on the branch iklam-backport-4ba980ba in my personal fork of openjdk/jdk18. To create a pull request with this backport targeting openjdk/jdk18:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 4ba980ba from the openjdk/jdk repository.

The commit being backported was authored by Ioi Lam on 15 Dec 2021 and was reviewed by David Holmes, Thomas Stuefe and Vladimir Kozlov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk18:

$ git fetch https://github.com/openjdk-bots/jdk18 iklam-backport-4ba980ba:iklam-backport-4ba980ba
$ git checkout iklam-backport-4ba980ba
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk18 iklam-backport-4ba980ba

Please sign in to comment.