Skip to content

Commit 9f2d753

Browse files
fandreuzshipilev
authored andcommitted
8367689: Revert removal of several compilation-related vmStructs fields
Reviewed-by: aturbanov, shade Backport-of: 4c5e901c96dee3885e1b29a53d3400174f9bba09
1 parent d998196 commit 9f2d753

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
@@ -667,6 +667,14 @@
667667
static_field(VMRegImpl, regName[0], const char*) \
668668
static_field(VMRegImpl, stack0, VMReg) \
669669
\
670+
/******************************************************************************************/ \
671+
/* CI (NOTE: these CI fields are retained in VMStructs for the benefit of external tools, */ \
672+
/* to ease their migration to a future alternative.) */ \
673+
/******************************************************************************************/ \
674+
\
675+
nonstatic_field(CompilerThread, _env, ciEnv*) \
676+
nonstatic_field(ciEnv, _task, CompileTask*) \
677+
\
670678
/************/ \
671679
/* Monitors */ \
672680
/************/ \
@@ -1150,6 +1158,12 @@
11501158
declare_toplevel_type(BasicLock) \
11511159
declare_toplevel_type(BasicObjectLock) \
11521160
\
1161+
/*********************/ \
1162+
/* CI */ \
1163+
/*********************/ \
1164+
\
1165+
declare_toplevel_type(ciEnv) \
1166+
\
11531167
/********************/ \
11541168
/* -XX flags */ \
11551169
/********************/ \

0 commit comments

Comments
 (0)