Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 305ecb2

Browse files
committed
Fix improperly adjusted external allocated memory on weak callback call
1 parent 9299d64 commit 305ecb2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/php_v8_value.cc

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ static void php_v8_value_weak_callback(const v8::WeakCallbackInfo<v8::Persistent
6767

6868
data.GetParameter()->Reset();
6969
delete data.GetParameter();
70-
71-
// Tell v8 that we release external allocated memory
72-
isolate->AdjustAmountOfExternalAllocatedMemory(-1024 * 1024 * 1024);
7370
}
7471

7572
static void php_v8_value_make_weak(php_v8_value_t *php_v8_value) {

0 commit comments

Comments
 (0)