[DTrace-devel] [PATCH 19/20] Implement a framework for D subroutines incl. strlen() implementation

Eugene Loh eugene.loh at oracle.com
Wed Jun 2 09:56:05 PDT 2021


A quick comment on this one.  The framework looks nice, but it seems to 
me that the patch induces widespread test failures. Tests will use 
subroutines, we call dt_cg_call_subr(), fun will generally be NULL, we 
call a NULL function, and we dump core.  A partially implemented 
framework needs guardrails for not-yet-implemented subroutines.

On 6/2/21 1:48 AM, Kris Van Hees wrote:
> This patch provides the skeleton for the implementation of subroutines
> in D.  The strlen() subroutine is provided as a first example of how
> to imeplement subroutines.  It is equivalent to the implementation of
> D actions in the code generator.



More information about the DTrace-devel mailing list