Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Fix threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jun 29, 2023
1 parent e99f7d0 commit c74193c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ private void genModuleDescriptorsMethod(ClassBuilder clb) {
List<ModuleInfo> currentModuleInfos = null;
for (int index = 0; index < moduleInfos.size(); index++) {
// The method is "manually split" based on the heuristics that 90 ModuleDescriptors are smaller than 64kb
// The number 50 is chosen "randomly" to be below the 64kb limit of a method
if (index % 50 == 0) {
// The number 75 is chosen, because it's the threshhold from above
if (index % 75 == 0) {
// Prepare new list
currentModuleInfos = new ArrayList<>();
splitModuleInfos.add(currentModuleInfos);
Expand Down

0 comments on commit c74193c

Please sign in to comment.