fix stopTrackingHeapObjects taking long time to finish

Issue: #I624YG
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I158ea2914bfdbf49f3225eced88e3ce0e46816cc
This commit is contained in:
Gymee 2022-11-21 10:11:24 +08:00
parent c334cc5f9c
commit 809de3e457

View File

@ -65,6 +65,7 @@ public:
void BytecodePcChangedEvent(JSThread *thread, Method *method, uint32_t bcOffset) const
{
if (UNLIKELY(listener_ != nullptr)) {
[[maybe_unused]] EcmaHandleScope handleScope(thread);
JSHandle<Method> methodHandle(thread, method);
listener_->BytecodePcChanged(thread, methodHandle, bcOffset);
}