mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
Modifying Code Alarms
Signed-off-by: jing_han <hanjing35@huawei.com> issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I66XNQ
This commit is contained in:
parent
63ad97aaf8
commit
fc57ce0c6c
@ -456,7 +456,6 @@ AOTFileInfo::CallSiteInfo AOTFileManager::CalCallSiteInfo(uintptr_t retAddr) con
|
||||
{
|
||||
AnFileDataManager *anFileDataManager = AnFileDataManager::GetInstance();
|
||||
return anFileDataManager->SafeCalCallSiteInfo(retAddr);
|
||||
|
||||
}
|
||||
|
||||
void AOTFileManager::PrintAOTEntry(const JSPandaFile *file, const Method *method, uintptr_t entry)
|
||||
@ -624,8 +623,8 @@ void AOTFileManager::AddConstantPool(const CString &snapshotFileName, JSTaggedVa
|
||||
|
||||
JSHandle<JSTaggedValue> AOTFileManager::GetDeserializedConstantPool(const JSPandaFile *jsPandaFile, int32_t cpID)
|
||||
{
|
||||
//The deserialization of the 'ai' data used by the multi-work
|
||||
// is not implemented yet, so there may be a case where
|
||||
// The deserialization of the 'ai' data used by the multi-work
|
||||
// is not implemented yet, so there may be a case where
|
||||
// desCPs_ is empty, in which case the Hole will be returned
|
||||
if (desCPs_.size() == 0) {
|
||||
return JSHandle<JSTaggedValue>(vm_->GetJSThread(), JSTaggedValue::Hole());
|
||||
@ -749,8 +748,8 @@ bool AOTFileInfo::CalCallSiteInfo(uintptr_t retAddr,
|
||||
|
||||
AnFileDataManager *AnFileDataManager::GetInstance()
|
||||
{
|
||||
static AnFileDataManager AnFileDataManager;
|
||||
return &AnFileDataManager;
|
||||
static AnFileDataManager anFileDataManager;
|
||||
return &anFileDataManager;
|
||||
}
|
||||
|
||||
AnFileDataManager::~AnFileDataManager()
|
||||
|
@ -45,13 +45,15 @@ public:
|
||||
size_t size_ {0};
|
||||
};
|
||||
|
||||
static void AllocateBuf(uint32_t size, ExeMem &exeMem) {
|
||||
static void AllocateBuf(uint32_t size, ExeMem &exeMem)
|
||||
{
|
||||
MemMap buf = MachineCodePageMap(AlignUp(size, PageSize()), PAGE_PROT_EXEC_READWRITE);
|
||||
exeMem.addr_ = buf.GetMem();
|
||||
exeMem.size_ = buf.GetSize();
|
||||
}
|
||||
|
||||
static void DestoryBuf(ExeMem &exeMem) {
|
||||
static void DestoryBuf(ExeMem &exeMem)
|
||||
{
|
||||
PageUnmap(MemMap(exeMem.addr_, exeMem.size_));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user