Merge
authorzgu
Fri, 03 May 2013 13:00:28 -0700
changeset 17299 bafc72bc89ff
parent 17297 41a66b33c624 (current diff)
parent 17298 7e956b7a3e87 (diff)
child 17300 dcff0b4a77f7
Merge
--- a/hotspot/src/share/vm/prims/perf.cpp	Fri May 03 05:17:15 2013 -0700
+++ b/hotspot/src/share/vm/prims/perf.cpp	Fri May 03 13:00:28 2013 -0700
@@ -142,20 +142,20 @@
   }
 
   switch(variability) {
-  case 1:  /* V_Constant */
+  case PerfData::V_Constant:
     pl = PerfDataManager::create_long_constant(NULL_NS, (char *)name_utf,
                                                (PerfData::Units)units, value,
                                                CHECK_NULL);
     break;
 
-  case 2:  /* V_Variable */
-    pl = PerfDataManager::create_long_variable(NULL_NS, (char *)name_utf,
+  case PerfData::V_Monotonic:
+    pl = PerfDataManager::create_long_counter(NULL_NS, (char *)name_utf,
                                                (PerfData::Units)units, value,
                                                CHECK_NULL);
     break;
 
-  case 3:  /* V_Monotonic Counter */
-    pl = PerfDataManager::create_long_counter(NULL_NS, (char *)name_utf,
+  case PerfData::V_Variable:
+    pl = PerfDataManager::create_long_variable(NULL_NS, (char *)name_utf,
                                               (PerfData::Units)units, value,
                                               CHECK_NULL);
     break;