Skip to content

Commit 6265481

Browse files
committed
address review comment
1 parent 96bcfd4 commit 6265481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/util/SizeEstimator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ object SizeEstimator extends Logging {
132132
}
133133

134134
// java.vm.info provides compressed ref info for IBM and OpenJ9 JDKs
135-
if (System.getProperty("java.vendor").contains("IBM") ||
136-
System.getProperty("java.vendor").contains("OpenJ9")) {
135+
val javaVendor = System.getProperty("java.vendor")
136+
if (javaVendor.contains("IBM") || javaVendor.contains("OpenJ9")) {
137137
return System.getProperty("java.vm.info").contains("Compressed Ref")
138138
}
139139

0 commit comments

Comments
 (0)