src/hotspot/share/jfr/leakprofiler/emitEventOperation.cpp
changeset 53013 c8b2a408628b
parent 52850 f527b24990d7
--- a/src/hotspot/share/jfr/leakprofiler/emitEventOperation.cpp	Thu Dec 13 10:25:50 2018 +0100
+++ b/src/hotspot/share/jfr/leakprofiler/emitEventOperation.cpp	Thu Dec 13 14:21:04 2018 +0100
@@ -185,7 +185,7 @@
   if (object->is_array()) {
     return arrayOop(object)->length();
   }
-  return -1;
+  return min_jint;
 }
 
 void EmitEventOperation::write_event(const ObjectSample* sample, EdgeStore* edge_store) {