Skip to content

Introduce Off-Heap Technology for Large Arrays in a Region-Based Garbage Collector - #6347

Merged
0xdaryl merged 1 commit into
eclipse-omr:masterfrom
jonoommen:offHeapMemoryCommitAndDecommitCurrent
Apr 20, 2022
Merged

0xdaryl merged 1 commit into
eclipse-omr:masterfrom
jonoommen:offHeapMemoryCommitAndDecommitCurrent

Conversation

@jonoommen

Copy link
Copy Markdown
Contributor

Introduce an optimized memory management for large arrays in a region-based garbage collector. More specifically, this is a new heap scheme and large object organization (in-heap and off-heap), an enhanced method for allocating large objects (proxy objects), and an optimized technique of accessing large arrays during runtime (JIT optimizations).

This new scheme not only unburdens large segregated array allocation from the heap, but it also preserves the illusion to the Just-In-Time (JIT) compiler through a clever object layout where all array elements can be accessed as if all arrays were contiguous (excluding zero-sized arrays). Furthermore, we can leverage such object layout (object proxies) to optimize memory management for large objects in a heap, by introducing off-heap.

Related to: eclipse-openj9/openj9#14005

Signed-off-by: Jonathan Oommen jon.oommen@gmail.com

Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/GCExtensionsBase.hpp Resolved
Comment thread gc/base/SparseVirtualMemory.hpp Resolved
Comment thread gc/base/SparseVirtualMemory.hpp Resolved
@jonoommen
jonoommen force-pushed the offHeapMemoryCommitAndDecommitCurrent branch 2 times, most recently from a79890c to ad93a67 Compare March 25, 2022 19:53
@jonoommen
jonoommen force-pushed the offHeapMemoryCommitAndDecommitCurrent branch 2 times, most recently from 4d71560 to 9878951 Compare April 4, 2022 22:01
Comment thread gc/base/VirtualMemory.hpp Resolved
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
@jonoommen
jonoommen force-pushed the offHeapMemoryCommitAndDecommitCurrent branch 4 times, most recently from c7f0e1c to 5ef5a6a Compare April 6, 2022 04:17
Comment thread gc/base/SparseVirtualMemory.cpp Resolved
Comment thread gc/base/SparseVirtualMemory.hpp Resolved
@jonoommen
jonoommen force-pushed the offHeapMemoryCommitAndDecommitCurrent branch 2 times, most recently from 67bc6d4 to 939cc96 Compare April 7, 2022 15:28
@jonoommen

Copy link
Copy Markdown
Contributor Author

@0xdaryl Not urgent, but this change now has the needed approval to move forward with the change.

@0xdaryl

0xdaryl commented Apr 19, 2022

Copy link
Copy Markdown
Contributor

Jenkins build all

Introduce an optimized memory management for large
arrays in a region-based garbage collector. More
specifically, this is a new heap scheme and large
object organization (in-heap and off-heap), an
enhanced method for allocating large objects (proxy
objects), and an optimized technique of accessing
large arrays during runtime (JIT optimizations).

Related to: eclipse-openj9/openj9#14005

Signed-off-by: Jonathan Oommen jon.oommen@gmail.com
@jonoommen
jonoommen force-pushed the offHeapMemoryCommitAndDecommitCurrent branch from 939cc96 to 334202d Compare April 20, 2022 01:01
@0xdaryl

0xdaryl commented Apr 20, 2022

Copy link
Copy Markdown
Contributor

Jenkins build all

@0xdaryl 0xdaryl self-assigned this Apr 20, 2022
@0xdaryl
0xdaryl merged commit dbf5e3c into eclipse-omr:master Apr 20, 2022
@jonoommen
jonoommen deleted the offHeapMemoryCommitAndDecommitCurrent branch March 31, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants