Skip to content

Commit

Permalink
Merge branch 'stable-6.0' into feature/app_generations
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Nov 13, 2024
2 parents 170c628 + 181f0cf commit aee6fbf
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:

on:
push: {}
pull_request: {}

jobs:
build_linux:
Expand Down Expand Up @@ -55,7 +54,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: binaries-linux-${{ matrix.arch }}
path: packages/binaries/linux/output/**/*
path: packaging/binaries/linux/output/**/*

- name: Update cache
run: ./dev/ci/update-cache-az-blob-storage
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:

on:
push: {}
pull_request: {}

jobs:
define-matrix:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:

on:
push: {}
pull_request: {}

jobs:
cxx-linux:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ env:

on:
push: {}
pull_request: {}

jobs:
define-matrix:
Expand Down
7 changes: 6 additions & 1 deletion src/agent/Core/ApplicationPool/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,13 @@ class Process {

void destroySelf() const {
Context *context = getContext();
Process *storagePointer = const_cast<Process *>(this);
this->~Process();

LockGuard l(context->memoryManagementSyncher);
context->processObjectPool.destroy(const_cast<Process *>(this));
// Use `storagePointer` because using `this` after calling the destructor
// is undefined behavior.
context->processObjectPool.free(storagePointer);
}


Expand Down
7 changes: 6 additions & 1 deletion src/agent/Core/ApplicationPool/Session.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,14 @@ class Session: public AbstractSession {
}

void destroySelf() const {
Context *context = this->context;
Session *storagePointer = const_cast<Session *>(this);
this->~Session();

LockGuard l(context->memoryManagementSyncher);
context->sessionObjectPool.free(const_cast<Session *>(this));
// Use `storagePointer` because using `this` after calling the destructor
// is undefined behavior.
context->sessionObjectPool.free(storagePointer);
}

public:
Expand Down

0 comments on commit aee6fbf

Please sign in to comment.