Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8278020: ~13% variation in Renaissance-Scrabble
Backport-of: 4ba980b
  • Loading branch information
iklam committed Jan 7, 2022
1 parent 7c792f2 commit 967ef0c48252957f9bec42965fe02414fd2c77cb
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.


1 comment on commit 967ef0c

Copy link

@openjdk-notifier openjdk-notifier bot commented on 967ef0c Jan 7, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.