Loading cnn.com in MiniBrowser hits Structure::dump() under DFG::AdaptiveInferredProp...
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGAdaptiveInferredPropertyValueWatchpoint.cpp
index 207b2fc..f7b91c8 100644 (file)
@@ -46,12 +46,9 @@ void AdaptiveInferredPropertyValueWatchpoint::handleFire(const FireDetail& detai
         dataLog("Firing watchpoint ", RawPointer(this), " (", key(), ") on ", *m_codeBlock, "\n");
 
 
-    StringPrintStream out;
-    out.print("Adaptation of ", key(), " failed: ", detail);
+    auto lazyDetail = createLazyFireDetail("Adaptation of ", key(), " failed: ", detail);
 
-    StringFireDetail stringDetail(out.toCString().data());
-
-    m_codeBlock->jettison(Profiler::JettisonDueToUnprofiledWatchpoint, CountReoptimization, &stringDetail);
+    m_codeBlock->jettison(Profiler::JettisonDueToUnprofiledWatchpoint, CountReoptimization, &lazyDetail);
 }
 
 } } // namespace JSC::DFG