Skip to content

Commit 4c5e901

Browse files
fandreuzkevinjwalls
authored andcommitted
8367689: Revert removal of several compilation-related vmStructs fields
Reviewed-by: kevinw, coleenp
1 parent a306f88 commit 4c5e901

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/hotspot/share/ci/ciClassList.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ friend class ciObjectFactory; \
8080
// Any more access must be given explicitly.
8181
#define CI_PACKAGE_ACCESS_TO \
8282
friend class ciObjectFactory; \
83+
friend class VMStructs; \
8384
friend class ciCallSite; \
8485
friend class ciConstantPoolCache; \
8586
friend class ciField; \

src/hotspot/share/runtime/vmStructs.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,14 @@
666666
static_field(VMRegImpl, regName[0], const char*) \
667667
static_field(VMRegImpl, stack0, VMReg) \
668668
\
669+
/******************************************************************************************/ \
670+
/* CI (NOTE: these CI fields are retained in VMStructs for the benefit of external tools, */ \
671+
/* to ease their migration to a future alternative.) */ \
672+
/******************************************************************************************/ \
673+
\
674+
nonstatic_field(CompilerThread, _env, ciEnv*) \
675+
nonstatic_field(ciEnv, _task, CompileTask*) \
676+
\
669677
/************/ \
670678
/* Monitors */ \
671679
/************/ \
@@ -1148,6 +1156,12 @@
11481156
declare_toplevel_type(BasicLock) \
11491157
declare_toplevel_type(BasicObjectLock) \
11501158
\
1159+
/*********************/ \
1160+
/* CI */ \
1161+
/*********************/ \
1162+
\
1163+
declare_toplevel_type(ciEnv) \
1164+
\
11511165
/********************/ \
11521166
/* -XX flags */ \
11531167
/********************/ \

0 commit comments

Comments
 (0)