mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #1337] [MERGED] Vendor paguro's RrbTree, fix an int overflow breaking large Lists
#1026
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1337
Author: @HT154
Created: 12/3/2025
Status: ✅ Merged
Merged: 12/3/2025
Merged by: @HT154
Base:
main← Head:vendor-rrbtree📝 Commits (2)
e2b8b71Vendor paguro'sRrbTree, fix an int overflow breaking largeLists1dad669Address review feedback📊 Changes
8 files changed (+1983 additions, -11 deletions)
View changed files
📝
pkl-core/pkl-core.gradle.kts(+6 -0)📝
pkl-core/src/main/java/org/pkl/core/runtime/VmList.java(+3 -3)📝
pkl-core/src/main/java/org/pkl/core/runtime/VmMap.java(+4 -4)📝
pkl-core/src/main/java/org/pkl/core/runtime/VmSet.java(+4 -4)➕
pkl-core/src/main/java/org/pkl/core/util/paguro/RrbTree.java(+1934 -0)➕
pkl-core/src/main/java/org/pkl/core/util/paguro/package-info.java(+30 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/list.pkl(+1 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/list.pcf(+1 -0)📄 Description
Paguro is unmaintained, so in lieu of replacing it entirely (which we'd like to do eventually) this PR vendors just the part of it that we need to fix the bug.
Paguro contains some code that is EPL 1.0-licensed (originally from Clojure) and some that is Apache 2.0 licensed. The
RrbTreeclass I've vendored here falls under the Apache 2.0 license.Supersedes #1336
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.