Skip to content

Commit 37a6a1e

Browse files
committedJun 1, 2022
Delete all references to ExtentLocalCacheSize.
1 parent 16ba6df commit 37a6a1e

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed
 

‎src/hotspot/share/prims/jvm.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -3181,19 +3181,12 @@ JVM_END
31813181

31823182
JVM_ENTRY(jobject, JVM_ExtentLocalCache(JNIEnv* env, jclass threadClass))
31833183
oop theCache = thread->extentLocalCache();
3184-
if (theCache) {
3185-
arrayOop objs = arrayOop(theCache);
3186-
assert(objs->length() == ExtentLocalCacheSize * 2, "wrong length");
3187-
}
31883184
return JNIHandles::make_local(THREAD, theCache);
31893185
JVM_END
31903186

31913187
JVM_ENTRY(void, JVM_SetExtentLocalCache(JNIEnv* env, jclass threadClass,
31923188
jobject theCache))
31933189
arrayOop objs = arrayOop(JNIHandles::resolve(theCache));
3194-
if (objs != NULL) {
3195-
assert(objs->length() == ExtentLocalCacheSize * 2, "wrong length");
3196-
}
31973190
thread->set_extentLocalCache(objs);
31983191
JVM_END
31993192

‎src/hotspot/share/runtime/flags/jvmFlagConstraintsRuntime.cpp

-12
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,6 @@ JVMFlag::Error VMPageSizeConstraintFunc(uintx value, bool verbose) {
9292
return JVMFlag::SUCCESS;
9393
}
9494

95-
JVMFlag::Error ExtentLocalCacheSizeConstraintFunc(intx value, bool verbose) {
96-
if (!is_power_of_2(value)) {
97-
JVMFlag::printError(verbose,
98-
"ExtentLocalCacheSize (" INTX_FORMAT ") must be "
99-
"power of 2\n",
100-
value);
101-
return JVMFlag::VIOLATES_CONSTRAINT;
102-
}
103-
104-
return JVMFlag::SUCCESS;
105-
}
106-
10795
JVMFlag::Error NUMAInterleaveGranularityConstraintFunc(size_t value, bool verbose) {
10896
size_t min = os::vm_allocation_granularity();
10997
size_t max = NOT_LP64(2*G) LP64_ONLY(8192*G);

‎src/hotspot/share/runtime/flags/jvmFlagConstraintsRuntime.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
f(intx, ObjectAlignmentInBytesConstraintFunc) \
3838
f(intx, ContendedPaddingWidthConstraintFunc) \
3939
f(intx, PerfDataSamplingIntervalFunc) \
40-
f(intx, ExtentLocalCacheSizeConstraintFunc) \
4140
f(uintx, VMPageSizeConstraintFunc) \
4241
f(size_t, NUMAInterleaveGranularityConstraintFunc)
4342

‎src/hotspot/share/runtime/globals.hpp

-5
Original file line numberDiff line numberDiff line change
@@ -2015,11 +2015,6 @@ const intx ObjectAlignmentInBytes = 8;
20152015
develop(bool, UseContinuationFastPath, true, \
20162016
"Use fast-path frame walking in continuations") \
20172017
\
2018-
product(intx, ExtentLocalCacheSize, 16, \
2019-
"Size of the cache for scoped values") \
2020-
range(0, max_intx) \
2021-
constraint(ExtentLocalCacheSizeConstraintFunc, AtParse) \
2022-
\
20232018
develop(int, VerifyMetaspaceInterval, DEBUG_ONLY(500) NOT_DEBUG(0), \
20242019
"Run periodic metaspace verifications (0 - none, " \
20252020
"1 - always, >1 every nth interval)") \

0 commit comments

Comments
 (0)
Please sign in to comment.