Skip to content

Commit 7384f6c

Browse files
committed
8224599: Remove globals_ext.hpp
Reviewed-by: coleenp, kvn, gziemski, ehelin
1 parent ffa8897 commit 7384f6c

15 files changed

+12
-102
lines changed

src/hotspot/share/gc/cms/jvmFlagConstraintsCMS.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#ifndef SHARE_GC_CMS_JVMFLAGCONSTRAINTSCMS_HPP
2626
#define SHARE_GC_CMS_JVMFLAGCONSTRAINTSCMS_HPP
2727

28-
#include "runtime/globals.hpp"
28+
#include "runtime/flags/jvmFlag.hpp"
2929
#include "utilities/globalDefinitions.hpp"
3030

3131
// CMS Flag Constraints

src/hotspot/share/gc/g1/jvmFlagConstraintsG1.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#ifndef SHARE_GC_G1_JVMFLAGCONSTRAINTSG1_HPP
2626
#define SHARE_GC_G1_JVMFLAGCONSTRAINTSG1_HPP
2727

28-
#include "runtime/globals.hpp"
28+
#include "runtime/flags/jvmFlag.hpp"
2929
#include "utilities/globalDefinitions.hpp"
3030

3131
// G1 Flag Constraints

src/hotspot/share/gc/parallel/jvmFlagConstraintsParallel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#ifndef SHARE_GC_PARALLEL_JVMFLAGCONSTRAINTSPARALLEL_HPP
2626
#define SHARE_GC_PARALLEL_JVMFLAGCONSTRAINTSPARALLEL_HPP
2727

28-
#include "runtime/globals.hpp"
28+
#include "runtime/flags/jvmFlag.hpp"
2929
#include "utilities/globalDefinitions.hpp"
3030

3131
// Parallel Subconstraints

src/hotspot/share/gc/shared/jvmFlagConstraintsGC.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#ifndef SHARE_GC_SHARED_JVMFLAGCONSTRAINTSGC_HPP
2626
#define SHARE_GC_SHARED_JVMFLAGCONSTRAINTSGC_HPP
2727

28+
#include "runtime/flags/jvmFlag.hpp"
2829
#include "utilities/globalDefinitions.hpp"
2930
#include "utilities/macros.hpp"
3031
#if INCLUDE_CMSGC

src/hotspot/share/runtime/flags/jvmFlag.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,8 @@ bool JVMFlag::is_constant_in_binary() const {
339339
}
340340

341341
bool JVMFlag::is_unlocker() const {
342-
return strcmp(_name, "UnlockDiagnosticVMOptions") == 0 ||
343-
strcmp(_name, "UnlockExperimentalVMOptions") == 0 ||
344-
is_unlocker_ext();
342+
return strcmp(_name, "UnlockDiagnosticVMOptions") == 0 ||
343+
strcmp(_name, "UnlockExperimentalVMOptions") == 0;
345344
}
346345

347346
bool JVMFlag::is_unlocked() const {
@@ -351,7 +350,7 @@ bool JVMFlag::is_unlocked() const {
351350
if (is_experimental()) {
352351
return UnlockExperimentalVMOptions;
353352
}
354-
return is_unlocked_ext();
353+
return true;
355354
}
356355

357356
void JVMFlag::clear_diagnostic() {
@@ -388,18 +387,18 @@ JVMFlag::MsgType JVMFlag::get_locked_message(char* buf, int buflen) const {
388387
_name);
389388
return JVMFlag::NOTPRODUCT_FLAG_BUT_PRODUCT_BUILD;
390389
}
391-
return get_locked_message_ext(buf, buflen);
390+
return JVMFlag::NONE;
392391
}
393392

394393
bool JVMFlag::is_writeable() const {
395-
return is_manageable() || (is_product() && is_read_write()) || is_writeable_ext();
394+
return is_manageable() || (is_product() && is_read_write());
396395
}
397396

398397
// All flags except "manageable" are assumed to be internal flags.
399398
// Long term, we need to define a mechanism to specify which flags
400399
// are external/stable and change this function accordingly.
401400
bool JVMFlag::is_external() const {
402-
return is_manageable() || is_external_ext();
401+
return is_manageable();
403402
}
404403

405404
// Helper function for JVMFlag::print_on().
@@ -881,7 +880,6 @@ static JVMFlag flagTable[] = {
881880
IGNORE_RANGE, \
882881
IGNORE_CONSTRAINT, \
883882
IGNORE_WRITEABLE)
884-
FLAGTABLE_EXT
885883
{0, NULL, NULL}
886884
};
887885

src/hotspot/share/runtime/flags/jvmFlag.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ struct JVMFlag {
206206
bool is_writeable() const;
207207
bool is_external() const;
208208

209-
bool is_unlocker_ext() const;
210-
bool is_unlocked_ext() const;
211-
bool is_writeable_ext() const;
212-
bool is_external_ext() const;
213-
214209
void clear_diagnostic();
215210

216211
JVMFlag::MsgType get_locked_message(char*, int) const;

src/hotspot/share/runtime/flags/jvmFlagConstraintList.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ void JVMFlagConstraintList::init(void) {
269269
EMIT_CONSTRAINT_CHECK,
270270
IGNORE_WRITEABLE)
271271

272-
EMIT_CONSTRAINTS_FOR_GLOBALS_EXT
273-
274272
EMIT_CONSTRAINT_END
275273
}
276274

src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ void JVMFlagRangeList::init(void) {
334334
IGNORE_CONSTRAINT,
335335
IGNORE_WRITEABLE)
336336

337-
EMIT_RANGES_FOR_GLOBALS_EXT
338-
339337
EMIT_RANGE_END
340338
}
341339

src/hotspot/share/runtime/flags/jvmFlagWriteableList.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ void JVMFlagWriteableList::init(void) {
126126
IGNORE_CONSTRAINT,
127127
EMIT_WRITEABLE_CHECK)
128128

129-
EMIT_WRITEABLES_FOR_GLOBALS_EXT
130-
131129
EMIT_WRITEABLE_END
132130
}
133131

src/hotspot/share/runtime/globals.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,3 @@ ALL_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \
7878
IGNORE_RANGE, \
7979
IGNORE_CONSTRAINT, \
8080
IGNORE_WRITEABLE)
81-
82-
MATERIALIZE_FLAGS_EXT

0 commit comments

Comments
 (0)