Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

asIJITCompilerV2 implementations can't always track function destruction

Started by Asu Jul 29, 2025 at 2:21 PM 2 replies 900+ views
Original Post
Asu
Asu

Per the docs:

The difference is that for version 2 it is optional to provide the JIT function at [the time of NewFunction].

Except that functions may be destroyed before you ever assign them a JIT function.
CleanFunction is never called if the JIT function pointer is null. Perhaps it should be?

AFAICT, without assigning a dummy jitFunction the JIT v2 interface doesn't let you hold onto functions safely.

WitchLord
WitchLord

You might be correct. I'll need to think about it.

AngelCode.comย - game development and more - Reference DBย - game developer references
AngelScriptย - free scripting library -ย BMFontย - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.