Add a TODO to report classes as they are first encountered
authorAndrey Kvochko <a.kvochko@samsung.com>
Fri, 27 Oct 2017 10:27:14 +0000 (13:27 +0300)
committerAndrey Kvochko/SRR-Compiler Lab/./삼성전자 <a.kvochko@samsung.com>
Fri, 27 Oct 2017 10:46:13 +0000 (13:46 +0300)
src/interpret/heaptrack_interpret.cpp

index cb66c28..fcb3642 100644 (file)
@@ -710,6 +710,8 @@ int main(int /*argc*/, char** /*argv*/)
             }
 
             // ensure class is encountered
+            // TODO: arrays are not reported to the profiler in ClassLoadFinished, so they will be reported in the trace here
+            // instead of the next case. We should figure out how to add them to the trace earlier on.
             const auto classId = data.addClass(classPointer);
             if (classId == 0 && classPointer != 0) {
                 cerr << "[W] Unknown class id (" << classPointer << ") here: " << reader.line() << endl;