Skip to content

[pull] master from GaijinEntertainment:master#693

Merged
pull[bot] merged 8 commits into
forksnd:masterfrom
GaijinEntertainment:master
Dec 29, 2025
Merged

[pull] master from GaijinEntertainment:master#693
pull[bot] merged 8 commits into
forksnd:masterfrom
GaijinEntertainment:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Dec 29, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

aleksisch and others added 8 commits December 29, 2025 13:11
Code in inscope_return_inscope.das contained UB, code like:
```
[sideeffects]
def buggy(skip : bool) {
    var a = new Foo
    if (skip) {
        return
    }
    var b = new Foo
} finally {
    unsafe {
        delete a
        delete b
    }
}
```
Sometimes it crashed, because b is uninitialized and when delete
was called it was treated as initialized.

More specifically it crashed when `daScriptTest` was called with
all the JIT optimizations disabled (LLVM_ENABLE_OPT_PASS=false)
and daslang built in Release or RelWithDebInfo.
Now we can JIT for loops which iterates over strings.
We want to check whether function a jit function even
if JIT module is not available, same way we check is_jit_enabled.

Let's move is_jit_function to module_builtin_runtime.
We are no longer needed cpp module for JIT at all.
- Add missed delete
- Add nan check, since nan != nan
- Remove all JIT related stuff, it's useless with last JIT updates
UBSAN complains about values in test
type_constructors being out of range. This
test file was commented until we'll fix this
issue.
@pull pull Bot locked and limited conversation to collaborators Dec 29, 2025
@pull pull Bot added the ⤵️ pull label Dec 29, 2025
@pull pull Bot merged commit 0ce38c4 into forksnd:master Dec 29, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants