Skip to content

Commit

Permalink
Merge pull request #20503 from LinHu2016/off-heap-incremental3
Browse files Browse the repository at this point in the history
Add flag isVirtualLargeObjectHeapEnabled in J9VMThread and J9JavaVM
  • Loading branch information
amicic authored Nov 5, 2024
2 parents bf41d6b + 82cac63 commit c03a349
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/gc_modron_startup/mminit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,7 @@ gcInitializeDefaults(J9JavaVM* vm)
#if defined(J9VM_ENV_DATA64)
vm->isIndexableDualHeaderShapeEnabled = TRUE;
vm->isIndexableDataAddrPresent = FALSE;
vm->isVirtualLargeObjectHeapEnabled = FALSE;
#endif /* defined(J9VM_ENV_DATA64) */

/* enable estimateFragmentation for all GCs as default for java, but not the estimated result would not affect concurrentgc kickoff by default */
Expand Down
2 changes: 2 additions & 0 deletions runtime/oti/j9nonbuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -5480,6 +5480,7 @@ typedef struct J9VMThread {
UDATA discontiguousIndexableHeaderSize;
#if defined(J9VM_ENV_DATA64)
UDATA isIndexableDataAddrPresent;
BOOLEAN isVirtualLargeObjectHeapEnabled;
#endif /* defined(J9VM_ENV_DATA64) */
void* gpInfo;
void* jitVMwithThreadInfo;
Expand Down Expand Up @@ -6033,6 +6034,7 @@ typedef struct J9JavaVM {
UDATA discontiguousIndexableHeaderSize;
#if defined(J9VM_ENV_DATA64)
UDATA isIndexableDataAddrPresent;
BOOLEAN isVirtualLargeObjectHeapEnabled;
BOOLEAN isIndexableDualHeaderShapeEnabled;
#endif /* defined(J9VM_ENV_DATA64) */
struct J9VMThread* exclusiveVMAccessQueueHead;
Expand Down
1 change: 1 addition & 0 deletions runtime/vm/vmthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ allocateVMThread(J9JavaVM *vm, omrthread_t osThread, UDATA privateFlags, void *m
newThread->unsafeIndexableHeaderSize = vm->unsafeIndexableHeaderSize;
#if defined(J9VM_ENV_DATA64)
newThread->isIndexableDataAddrPresent = vm->isIndexableDataAddrPresent;
newThread->isVirtualLargeObjectHeapEnabled = vm->isVirtualLargeObjectHeapEnabled;
#endif /* defined(J9VM_ENV_DATA64) */

newThread->privateFlags = privateFlags;
Expand Down

0 comments on commit c03a349

Please sign in to comment.