Support heapsnapshot when young space oom

Support heapsnapshot when young space oom
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9MN3W?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I0b28d37359afea03e7aee7bde3dd170385f818ca
This commit is contained in:
lukai 2024-05-06 17:12:32 +08:00
parent 56cfbeb728
commit 336f5c59ed

View File

@ -224,7 +224,8 @@ public:
bool IsOOMDumpSpace()
{
return spaceType_ == OLD_SPACE || spaceType_ == NON_MOVABLE || spaceType_ == HUGE_OBJECT_SPACE;
return spaceType_ == SEMI_SPACE || spaceType_ == OLD_SPACE || spaceType_ == NON_MOVABLE ||
spaceType_ == HUGE_OBJECT_SPACE;
}
// methods for allocation inspector