Skip to content

9.2: Assertion failures in Stats.c

On the 9.2 branch the two assertions fail in Stats.c. I think this is fixed by some commit on master but not sure which one.

@@ -1396,7 +1396,7 @@ stat_exitReport (void)
                                 - sum.exit_cpu_ns)
                 / TimeToSecondsDbl(stats.cpu_ns);
 
-            ASSERT(sum.productivity_cpu_percent >= 0);
+// ASSERT(sum.productivity_cpu_percent >= 0);
 
             sum.productivity_elapsed_percent =
                 TimeToSecondsDbl(stats.elapsed_ns
(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]? n
@@ -1405,7 +1405,7 @@ stat_exitReport (void)
                                 - sum.exit_elapsed_ns)
                 / TimeToSecondsDbl(stats.elapsed_ns);
 
-            ASSERT(sum.productivity_elapsed_percent >= 0);
+   //         ASSERT(sum.productivity_elapsed_percent >= 0);
 
             for(uint32_t g = 0; g < RtsFlags.GcFlags.generations; ++g) {
                 const generation* gen = &generations[g];

This makes ticky profiling unusable so marking as highest priority.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information