Home
last modified time | relevance | path

Searched full:memory (Results 1 – 25 of 1647) sorted by relevance

12345678910>>...66

/arkcompiler/runtime_core/libpandabase/tests/
Dlock_holder_basic_test.cpp27 panda::os::memory::DummyLock lock;
29 panda::os::memory::LockHolder<panda::os::memory::DummyLock> lock_holder(lock);
35 panda::os::memory::DummyLock lock;
37 panda::os::memory::ReadLockHolder<panda::os::memory::DummyLock> read_lock_holder(lock);
43 panda::os::memory::DummyLock lock;
45 panda::os::memory::WriteLockHolder<panda::os::memory::DummyLock> write_lock_holder(lock);
51 panda::os::memory::Mutex lock;
55 panda::os::memory::LockHolder<panda::os::memory::Mutex> lock_holder(lock);
76 panda::os::memory::RWLock lock;
80 panda::os::memory::ReadLockHolder<panda::os::memory::RWLock> read_lock_holder(lock);
[all …]
/arkcompiler/runtime_core/libpandabase/os/
Dmem.h35 #include <memory>
44 * \brief Make memory region \param mem with size \param size with protection flags \param prot
45 * @param mem Pointer to memory region (should be aligned to page size)
46 * @param size Size of memory region
47 * @param prot Memory protection flags, a combination of MMAP_PROT_XXX values
53 * \brief Make memory region \param mem with size \param size readable and executable
54 * @param mem Pointer to memory region (should be aligned to page size)
55 * @param size Size of memory region
61 * \brief Make memory region \param mem with size \param size readable and writable
62 * @param mem Pointer to memory region (should be aligned to page size)
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dmem.h35 #include <memory>
46 * @brief Make memory region @param mem with size @param size with protection flags @param prot
47 * @param mem Pointer to memory region (should be aligned to page size)
48 * @param size Size of memory region
49 * @param prot Memory protection flags, a combination of MMAP_PROT_XXX values
55 * @brief Make memory region @param mem with size @param size readable and executable
56 * @param mem Pointer to memory region (should be aligned to page size)
57 * @param size Size of memory region
63 * @brief Make memory region @param mem with size @param size readable and writable
64 * @param mem Pointer to memory region (should be aligned to page size)
[all …]
/arkcompiler/runtime_core/libabckit/tests/stress/
Doptions_list.json2 …"/tmp/abckit_test262/implementation-contributed/v8/mjsunit/asm/embenchen/zlib.js": ["--memory-size…
3 …ntributed/v8/mjsunit/harmony/well-formed-json-stringify-checked.js": ["--memory-size-limit", "7684…
4 …ributed/v8/mjsunit/harmony/well-formed-json-stringify-unchecked.js": ["--memory-size-limit", "3068…
5 …tion-contributed/v8/mjsunit/third_party/regexp-pcre/regexp-pcre.js": ["--memory-size-limit", "3068…
6 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/asm/embenchen/zlib.js": ["--memory-size-limit", "76843545…
7 …deps/v8/test/mjsunit/harmony/well-formed-json-stringify-checked.js": ["--memory-size-limit", "7684…
8 …ps/v8/test/mjsunit/harmony/well-formed-json-stringify-unchecked.js": ["--memory-size-limit", "7684…
9 …"/tmp/abckit_nodejs/deps/v8/test/mjsunit/third_party/regexp-pcre/regexp-pcre.js": ["--memory-size-…
/arkcompiler/runtime_core/static_core/runtime/arch/
Dmemory_helpers.h19 #include "aarch64/memory.h"
21 #include "arm/memory.h"
23 #include "x86/memory.h"
25 #include "amd64/memory.h"
34 // Forces system-wide full memory synchronization
36 // Architecture-agnostic C++ memory order provides no reordering guarantees in case just one thread…
43 // Actually only full memory barrier guarantees StoreLoad order but separate implementation is used…
/arkcompiler/jsvm/src/
Dmemory_manager.h39 ElementMemory memory; member
58 elements[i].memory.next = &(elements[i + 1].memory); in MemoryChunk()
61 elements[sizePerChunk - 1].memory.next = nullptr; in MemoryChunk()
92 … LOG(Error) << "Memory is in use when free " << std::hex << reinterpret_cast<uintptr_t>(ptr); in ~MemoryChunkList()
112 auto* memory = reinterpret_cast<ElementMemory*>(element); in Delete() local
113 auto* chunk = ElementContainer::GetMemoryChunk(memory); in Delete()
121 memory->next = freeList; in Delete()
122 freeList = memory; in Delete()
132 auto* memory = freeList; in GetMemory() local
133 ElementContainer::GetMemoryChunk(memory)->Dec(); in GetMemory()
[all …]
/arkcompiler/runtime_core/static_core/runtime/include/
Dlocks.h20 #include <memory>
25 class PANDA_PUBLIC_API MutatorLock : public os::memory::RWLock {
26 using LockT = os::memory::RWLock;
28 class PANDA_PUBLIC_API MutatorLock : public os::memory::DummyLock {
29 using LockT = os::memory::DummyLock;
58 … static os::memory::Mutex *customTlsLock_; // NOLINT(misc-non-private-member-variables-in-classes)
64 static os::memory::Mutex *userSuspensionLock_;
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/debugger/
Ddebuggable_thread.cpp32 os::memory::LockHolder lock(mutex_); in Reset()
38 os::memory::LockHolder lock(mutex_); in BreakOnStart()
44 os::memory::LockHolder lock(mutex_); in Continue()
51 os::memory::LockHolder lock(mutex_); in ContinueTo()
58 os::memory::LockHolder lock(mutex_); in StepInto()
65 os::memory::LockHolder lock(mutex_); in StepOver()
72 os::memory::LockHolder lock(mutex_); in StepOut()
79 os::memory::LockHolder lock(mutex_); in IsPaused()
85 os::memory::LockHolder lock(mutex_); in Touch()
91 os::memory::LockHolder lock(mutex_); in Pause()
[all …]
/arkcompiler/toolchain/tooling/static/debugger/
Ddebuggable_thread.cpp32 os::memory::LockHolder lock(mutex_); in Reset()
38 os::memory::LockHolder lock(mutex_); in BreakOnStart()
44 os::memory::LockHolder lock(mutex_); in Continue()
51 os::memory::LockHolder lock(mutex_); in ContinueTo()
58 os::memory::LockHolder lock(mutex_); in StepInto()
65 os::memory::LockHolder lock(mutex_); in StepOver()
72 os::memory::LockHolder lock(mutex_); in StepOut()
79 os::memory::LockHolder lock(mutex_); in IsPaused()
85 os::memory::LockHolder lock(mutex_); in Touch()
91 os::memory::LockHolder lock(mutex_); in Pause()
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dheap_space.cpp95 os::memory::WriteLockHolder lock(heapLock_); in ComputeNewSize()
120 // If can allocate pool (from free pool map or non-used memory) then just do it in WillAlloc()
122 // We have enough memory for allocation, no need to increase heap in WillAlloc()
127 …// if requested pool size greater free bytes in current heap space and non occupied memory then we… in WillAlloc()
146 os::memory::WriteLockHolder lock(heapLock_); in ClampCurrentMaxHeapSize()
174 os::memory::WriteLockHolder lock(heapLock_); in TryAllocPool()
195 os::memory::WriteLockHolder lock(heapLock_); in TryAllocArena()
201 os::memory::ReadLockHolder lock(heapLock_); in FreePool()
213 os::memory::ReadLockHolder lock(heapLock_); in FreeArena()
245 os::memory::ReadLockHolder lock(heapLock_); in GetCurrentFreeYoungSize()
[all …]
Dalloc_config.h30 … stats about allocations and free events. Allocators don't care about the type of allocated memory.
31 …* It could be raw memory for any reason or memory for object in the programming language. If it's …
48 /// @brief Initialize an object memory allocated by an allocator.
56 // without 'volatile' specifier so full memory barrier is required in MemoryInit()
99 * @brief Initialize a Crossing map for the corresponding memory ranges.
109 * @brief Remove a Crossing map for the corresponding memory ranges.
120 * @param mem_range - range of a new young memory.
141 /// @brief Initialize an object memory allocated by an allocator.
149 // without 'volatile' specifier so full memory barrier is required in MemoryInit()
181 * @param mem_range - range of a new young memory.
[all …]
Dhumongous_obj_allocator-inl.h47 os::memory::WriteLockHolder<LockConfigT, NEED_LOCK> wlock(allocFreeLock_); in Alloc()
48 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Try to allocate memory with size " << size; in Alloc()
50 // Check that we can get a memory header for the memory pointer by using PAGE_SIZE_MASK mask in Alloc()
73 …LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Find reserved memory block with size " << memHeader->GetPoo… in Alloc()
80 …LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Find free memory block with size " << memHeader->GetPoolSiz… in Alloc()
85 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Can't find memory for this size"; in Alloc()
90 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Allocated memory at addr " << std::hex << mem; in Alloc()
101 os::memory::WriteLockHolder wlock(allocFreeLock_); in Free()
109 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Try to free memory at invalid addr 0"; in FreeUnsafe()
112 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "Try to free memory at addr " << std::hex << mem; in FreeUnsafe()
[all …]
Dbump-allocator.h19 #include <memory>
37 using CommonLock = os::memory::Mutex;
38 using DummyLock = os::memory::DummyLock;
44 // This allocator can allocate memory as a BumpPointerAllocator
45 // and also can allocate big pieces of memory for the TLABs.
50 // | Memory Pool …
52 // | allocated objects | unused memory | memory for TLABs …
56 // |xxxxxxxxxx|xxxxxx|xxxxxxxxx| free memory | TLAB 3 || TLAB 2 || …
107 * @brief Add an extra memory pool to the allocator.
108 * The memory pool must be located just after the current memory given to this allocator.
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Darena.h36 * @brief Allocates memory with size @param size and aligned with @param alignment
37 * @param size - size of the allocated memory
38 * @param alignment - alignment of the allocated memory
39 * @return pointer to the allocated memory on success, or nullptr on fail
73 /// @return A pointer to the raw memory inside arena
95 …/// @brief Mark all memory after @param mem as free. Check that @param mem is stored inside this a…
98 /// @brief Set occupied memory size to @param new_size.
105 * @brief Expand arena. The new memory must be located just after the current buffer.
114 * @brief Fast allocates memory with size @param size
115 * @param size - size of the allocated memory, must be @param alignment aligned
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Darena.h36 * \brief Allocates memory with size \param size and aligned with \param alignment
37 * @param size - size of the allocated memory
38 * @param alignment - alignment of the allocated memory
39 * @return pointer to the allocated memory on success, or nullptr on fail
86 * @return A pointer to the raw memory inside arena
110 …* \brief Mark all memory after \param mem as free. Check that \param mem is stored inside this are…
115 * \brief Set occupied memory size to \param new_size.
125 * \brief Expand arena. The new memory must be located just after the current buffer.
134 * \brief Fast allocates memory with size \param size
135 * @param size - size of the allocated memory, must be \param alignment aligned
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dmemory-management-SW-requirements.md3 The main components of Panda memory management:
12 Garbage collector(GC) automatically recycles memory that it can prove will never be used again.
13 GC used to recycle memory allocated as result of application work(objects, compiled code etc).
31 - Internal memory space for non-compiler part of runtime (including GC internals)
48 # 3. KEY FEATURES OF MEMORY MANAGEMENT SYSTEM
72 - Memory management flexible enough to work with multiple languages.
/arkcompiler/runtime_core/docs/
Dmemory-management-SW-requirements.md3 The main components of Panda memory management:
12 Garbage collector(GC) automatically recycles memory that it can prove will never be used again.
13 GC used to recycle memory allocated as result of application work(objects, compiled code etc).
31 - Internal memory space for non-compiler part of runtime (including GC internals)
48 # 3. KEY FEATURES OF MEMORY MANAGEMENT SYSTEM
72 - Memory management flexible enough to work with multiple languages.
/arkcompiler/runtime_core/static_core/runtime/
Dthread_pool.h113 os::memory::LockHolder lock(scaleLock_); in ~ThreadPool()
120 os::memory::LockHolder scaleLock(scaleLock_); in Scale()
132 os::memory::LockHolder queueLock(queueLock_); in Scale()
147 os::memory::LockHolder queueLock(queueLock_); in Scale()
160 os::memory::LockHolder scaleLock(scaleLock_); in Help()
177 os::memory::LockHolder lock(queueLock_); in Help()
199 os::memory::LockHolder lock(queueLock_); in TryPutTask()
215 os::memory::LockHolder lock(queueLock_); in PutTask()
230 os::memory::LockHolder lock(queueLock_); in IsActive()
236 os::memory::LockHolder lock(scaleLock_);
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dlse_doc.md4 The idea of optimization is to delete store instructions that store a value to memory that has been…
8 Elimination of load and store instructions generally reduces the number of long latency memory inst…
18 …s to know that two memory instructions access the same memory address. This can be done using ali…
19 * `MUST_ALIAS` if the instructions definitely access the same memory address
20 * `NO_ALIAS` if the instructions definitely access different memory addresses.
21 …lysis can't say with confidence whether the instructions access the same memory address or differe…
25 `"Memory Instruction" -> "Value stored at location pointed by instruction"`
27memory operates with a particular memory address. E.g. store instructions write values on the heap…
36 …red value then the new stored value is written into heap. The values of memory instructions that …
45memory operations may update heap using back edge. Therefore an initial heap for loop header is em…
[all …]
/arkcompiler/runtime_core/libabckit/tests/sanitizers/
DREADME.md3 - leak:NewMutatorLock - `static_core/runtime` has known memory leak issues, check `runtime_core/sta…
4 - leak:CreateJSVM - dynamic VM has memory leak issues
5 - leak:CreateSharedClass - dynamic VM has memory leak issues
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
Dtwo_lock_queue.h29 os::memory::LockHolder lh(pushLock_); in Push()
35 os::memory::LockHolder lh(popLock_); in Pop()
41 os::memory::LockHolder lh(popLock_); in TryPop()
58 mutable os::memory::Mutex pushLock_;
59 mutable os::memory::Mutex popLock_;
/arkcompiler/toolchain/tooling/static/
Dinspector.cpp81 os::memory::ReadLockHolder lock(debuggerEventsLock_); in CollectModules()
102 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ConsoleCall()
119 os::memory::ReadLockHolder lock(debuggerEventsLock_); in Exception()
129 os::memory::ReadLockHolder lock(debuggerEventsLock_); in FramePop()
139 os::memory::ReadLockHolder lock(debuggerEventsLock_); in MethodEntry()
172 os::memory::ReadLockHolder lock(debuggerEventsLock_); in LoadModule()
192 os::memory::ReadLockHolder lock(debuggerEventsLock_); in SingleStep()
208 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ThreadStart()
236 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ThreadEnd()
248 os::memory::WriteLockHolder lock(vmDeathLock_); in VmDeath()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Dinspector.cpp82 os::memory::ReadLockHolder lock(debuggerEventsLock_); in CollectModules()
106 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ConsoleCall()
117 os::memory::ReadLockHolder lock(debuggerEventsLock_); in Exception()
126 os::memory::ReadLockHolder lock(debuggerEventsLock_); in FramePop()
135 os::memory::ReadLockHolder lock(debuggerEventsLock_); in MethodEntry()
164 os::memory::ReadLockHolder lock(debuggerEventsLock_); in LoadModule()
187 os::memory::ReadLockHolder lock(debuggerEventsLock_); in SingleStep()
202 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ThreadStart()
230 os::memory::ReadLockHolder lock(debuggerEventsLock_); in ThreadEnd()
242 os::memory::WriteLockHolder lock(vmDeathLock_); in VmDeath()
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_queue.h19 #include <memory>
59 os::memory::LockHolder lock(lock_); in IsEmpty()
65 os::memory::LockHolder lock(lock_); in Signal()
71 os::memory::LockHolder lock(lock_); in WaitForGCTask()
85 mutable os::memory::Mutex lock_;
88 os::memory::ConditionVariable condVar_;
/arkcompiler/ets_runtime/common_components/heap/allocator/
Dmemory_map.h47 const char* tag; // name to identify the mapped memory
53 // by default, it tries to map memory in low addr space, with a random start
90 void* memBaseAddr_; // start of the mapped memory
91 void* memCurrEndAddr_; // end of the memory **in use**
92 void* memMappedEndAddr_; // end of the mapped memory, always >= currEndAddr
93 size_t memCurrSize_; // size of the memory **in use**
94 size_t memMappedSize_; // size of the mapped memory, always >= currSize

12345678910>>...66