File tree Expand file tree Collapse file tree 8 files changed +1983
-11
lines changed
test/files/LanguageSnippetTests Expand file tree Collapse file tree 8 files changed +1983
-11
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ tasks.test {
120120 excludeEngines(" AlpineLanguageSnippetTestsEngine" )
121121 excludeEngines(" WindowsLanguageSnippetTestsEngine" )
122122 }
123+
124+ // testing very large lists requires more memory than the default 512m!
125+ maxHeapSize = " 1g"
123126}
124127
125128val testJavaExecutable by
@@ -135,6 +138,9 @@ val testJavaExecutable by
135138 // executable;
136139 // to verify that we don't want to include them here)
137140 (configurations.testRuntimeClasspath.get() - configurations.runtimeClasspath.get())
141+
142+ // testing very large lists requires more memory than the default 512m!
143+ maxHeapSize = " 1g"
138144 }
139145
140146tasks.check { dependsOn(testJavaExecutable) }
Original file line number Diff line number Diff line change 1919import java .util .ArrayList ;
2020import java .util .Iterator ;
2121import java .util .List ;
22- import org .organicdesign .fp .collections .RrbTree ;
23- import org .organicdesign .fp .collections .RrbTree .ImRrbt ;
24- import org .organicdesign .fp .collections .RrbTree .MutRrbt ;
2522import org .organicdesign .fp .collections .UnmodCollection ;
2623import org .organicdesign .fp .collections .UnmodIterable ;
2724import org .pkl .core .ast .ConstantNode ;
2825import org .pkl .core .ast .ExpressionNode ;
2926import org .pkl .core .runtime .Iterators .ReverseTruffleIterator ;
3027import org .pkl .core .runtime .Iterators .TruffleIterator ;
3128import org .pkl .core .util .Nullable ;
29+ import org .pkl .core .util .paguro .RrbTree ;
30+ import org .pkl .core .util .paguro .RrbTree .ImRrbt ;
31+ import org .pkl .core .util .paguro .RrbTree .MutRrbt ;
3232
3333// currently the backing collection is realized at the end of each VmList operation
3434// this trades efficiency for ease of understanding, as it eliminates the complexity
Original file line number Diff line number Diff line change 11/*
2- * Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
2+ * Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2222import org .organicdesign .fp .collections .ImMap ;
2323import org .organicdesign .fp .collections .MutMap ;
2424import org .organicdesign .fp .collections .PersistentHashMap ;
25- import org .organicdesign .fp .collections .RrbTree ;
26- import org .organicdesign .fp .collections .RrbTree .ImRrbt ;
27- import org .organicdesign .fp .collections .RrbTree .MutRrbt ;
2825import org .pkl .core .ast .ConstantNode ;
2926import org .pkl .core .ast .ExpressionNode ;
3027import org .pkl .core .util .CollectionUtils ;
3128import org .pkl .core .util .Nullable ;
29+ import org .pkl .core .util .paguro .RrbTree ;
30+ import org .pkl .core .util .paguro .RrbTree .ImRrbt ;
31+ import org .pkl .core .util .paguro .RrbTree .MutRrbt ;
3232
3333public final class VmMap extends VmValue implements Iterable <Map .Entry <Object , Object >> {
3434 public static final VmMap EMPTY = new VmMap (PersistentHashMap .empty (), RrbTree .empty ());
Original file line number Diff line number Diff line change 11/*
2- * Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
2+ * Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2121import org .organicdesign .fp .collections .ImSet ;
2222import org .organicdesign .fp .collections .MutSet ;
2323import org .organicdesign .fp .collections .PersistentHashSet ;
24- import org .organicdesign .fp .collections .RrbTree ;
25- import org .organicdesign .fp .collections .RrbTree .ImRrbt ;
26- import org .organicdesign .fp .collections .RrbTree .MutRrbt ;
2724import org .pkl .core .ast .ConstantNode ;
2825import org .pkl .core .ast .ExpressionNode ;
2926import org .pkl .core .runtime .Iterators .ReverseTruffleIterator ;
3027import org .pkl .core .runtime .Iterators .TruffleIterator ;
3128import org .pkl .core .util .CollectionUtils ;
3229import org .pkl .core .util .Nullable ;
30+ import org .pkl .core .util .paguro .RrbTree ;
31+ import org .pkl .core .util .paguro .RrbTree .ImRrbt ;
32+ import org .pkl .core .util .paguro .RrbTree .MutRrbt ;
3333
3434public final class VmSet extends VmCollection {
3535 public static final VmSet EMPTY = new VmSet (PersistentHashSet .empty (), RrbTree .empty ());
You can’t perform that action at this time.
0 commit comments