aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ScriptExecutionContext.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-07-30 02:03:32 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-30 02:03:32 -0700
commit1db119ec1180fbbfb5fa55d46f3b38ea19738bc2 (patch)
tree64eb6f456d47c287856bfdf7bf2d50c1ea2237b7 /src/bun.js/bindings/ScriptExecutionContext.h
parent413fd281208f24a532c47249dec1bfc3aef2bf37 (diff)
downloadbun-1db119ec1180fbbfb5fa55d46f3b38ea19738bc2.tar.gz
bun-1db119ec1180fbbfb5fa55d46f3b38ea19738bc2.tar.zst
bun-1db119ec1180fbbfb5fa55d46f3b38ea19738bc2.zip
Fix memory leak (#3887)
* Fix memory leak * Remove an extra copy * Further fixes --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/bun.js/bindings/ScriptExecutionContext.h')
-rw-r--r--src/bun.js/bindings/ScriptExecutionContext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bun.js/bindings/ScriptExecutionContext.h b/src/bun.js/bindings/ScriptExecutionContext.h
index 23c44ab51..271c7e205 100644
--- a/src/bun.js/bindings/ScriptExecutionContext.h
+++ b/src/bun.js/bindings/ScriptExecutionContext.h
@@ -34,7 +34,7 @@ class MessagePort;
class ScriptExecutionContext;
class EventLoopTask {
- WTF_MAKE_FAST_ALLOCATED;
+ WTF_MAKE_ISO_ALLOCATED(EventLoopTask);
public:
enum CleanupTaskTag { CleanupTask };
@@ -74,6 +74,7 @@ protected:
using ScriptExecutionContextIdentifier = uint32_t;
class ScriptExecutionContext : public CanMakeWeakPtr<ScriptExecutionContext> {
+ WTF_MAKE_ISO_ALLOCATED(ScriptExecutionContext);
public:
ScriptExecutionContext(JSC::VM* vm, JSC::JSGlobalObject* globalObject)