Skip to content

calls_out (go): throw( dropped by the global keyword ignore; (*T)(x) conversions missed #3645

Closed

Description

@squid-protocol

Part of #3641. The shapes are validated in docs/self_scan/graph_comparison_ledger.json.

  • throw, 66 occurrences. In Go, throw("…") is a real runtime function (go/core/mgc.go:1386). _CALLS_OUT_GLOBAL_IGNORE lists throw because it's a keyword in C++/Java/JS, so Go loses every call. Fix: move throw from the global set into the per-language _calls_out_ignore of the languages where it is a keyword. That's a C2 correction: keywords are per language.
  • Parenthesized conversions, 51 + 91 occurrences. (*gcBgMarkWorkerNode)(nodep) and (*uintptr)(unsafe.Pointer(…)). These are conversions, and conversions are calls per C3. The (-before-name shape isn't matched. Shapes: call_expression/parenthesized_expression, and engine-attributes-to-another-function, which is the same conversions.

Measure: call_graph_accuracy.py --buckets 3 (go today: 99.9% raw precision, 96.4% recall).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions