< prev index next >

src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp

Print this page
rev 9711 : 8143215: gcc 4.1.2: fix three issues breaking the build.
Summary: Also fix some more recent introduced missing casts.
Reviewed-by: stuefe, simonis, kbarrett, tschatzl

@@ -2729,11 +2729,11 @@
 
  public:
   // Not MT-safe; so do not pass around these StackObj's
   // where they may be accessed by other threads.
   jlong wallclock_millis() {
-    return TimeHelper::counter_to_millis(os::elapsed_counter() - _trace_time.start_time());
+    return (jlong)TimeHelper::counter_to_millis(os::elapsed_counter() - _trace_time.start_time());
   }
 };
 
 CMSPhaseAccounting::CMSPhaseAccounting(CMSCollector *collector,
                                        const char *title) :
< prev index next >