Commit 31fc9de
Implement fast and slow value object hash paths
- Use the recursive fast path for value object hash
computation.
- Use the fast path while the recursion depth is
below J9_VALUE_TYPE_HASH_DEPTH_LIMIT.
- Switch to the iterative path when the recursion
depth limit is exceeded.
- Use a DFS-based queue to traverse value object
fields in the iterative path.
- Add -XX:hashMaxRecDepth debug option to override
default recursion depth.
Fixes: #24087
Signed-off-by: Aditi Srinivas M <Aditi.Srini@ibm.com>1 parent f5dbbc3 commit 31fc9de
4 files changed
Lines changed: 416 additions & 194 deletions
0 commit comments