Skip to content

[ESIMD] Move RAII deleter init after buffer allocation. #17706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

maarquitos14
Copy link
Contributor

The buffer seems to be allocated in the call to NameNode->print(NameBuf), so we need to move the RAII deleter after that call, otherwise the buffer keeps leaking because when the RAII deleter is created, there's no buffer yet.

@maarquitos14 maarquitos14 requested a review from a team as a code owner March 28, 2025 10:23
@maarquitos14 maarquitos14 changed the title [ESIMD] Move RAII deleter init after buffer initialization. [ESIMD] Move RAII deleter init after buffer allocation. Mar 28, 2025
@sarnex sarnex merged commit 2533518 into intel:sycl Mar 28, 2025
34 of 35 checks passed
KornevNikita pushed a commit that referenced this pull request Jun 3, 2025
The buffer seems to be allocated in the call to
`NameNode->print(NameBuf)`, so we need to move the RAII deleter after
that call, otherwise the buffer keeps leaking because when the RAII
deleter is created, there's no buffer yet.
KornevNikita pushed a commit to KornevNikita/llvm that referenced this pull request Jun 10, 2025
…17706)

The buffer seems to be allocated in the call to
`NameNode->print(NameBuf)`, so we need to move the RAII deleter after
that call, otherwise the buffer keeps leaking because when the RAII
deleter is created, there's no buffer yet.
AlexeySachkov pushed a commit that referenced this pull request Jun 12, 2025
Cherry-pick commits that reached the internal branch between intel/llvm
cutoff and release branch pulldown.

Patches included:

[SYCL][E2E] Fix DeviceLib/assert-windows.cpp run-time errors (#17493)

Patch-by: David Garcia Orozco <[email protected]>

---

[SYCL] Fix memory leak. (#17632)

According to
https://github.com/llvm/llvm-project/blob/main/llvm/unittests/Demangle/OutputBufferTest.cpp,
`OutputBuffer` has to be manually freed.

Patch-by: Marcos Maronas <[email protected]>

---

[SYCL][E2E][Matrix] Cleanup of xfail and unsupported (#17688)

Patch-by: Dounia Khaldi <[email protected]>

---

[SYCL][E2E][Matrix] Restrict XFAIL in some tests to DG2 (#17639)

XPASSing in
[nightly](https://github.com/intel/llvm/actions/runs/14050841978) but
failing in pre/postcommit, make them XFAIL only where they actually
fail.

Patch-by: Nick Sarnie <[email protected]>

---

[SYCL][ESIMD] Move RAII deleter init after buffer allocation. (#17706)

The buffer seems to be allocated in the call to
`NameNode->print(NameBuf)`, so we need to move the RAII deleter after
that call, otherwise the buffer keeps leaking because when the RAII
deleter is created, there's no buffer yet.

Patch-by: Marcos Maronas <[email protected]>

---

[SYCL] Add spill_memory_size unittest (#17657)

This adds a unittest for the kernel queries extension according to
#17593.

Patch-by: Petr Kurapov <[email protected]>

---

[SYCL][Bindless][E2E] Add 1D host USM tests (#17374)

Adds 1D Host USM backed image tests.

This patch also fixes device aspect queries for 1D & 2D USM backed image
sampling support.

Patch-by: przemektmalon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants