[SPIGOT-1195] Broken version of trovy, it just eat memory. Created: 20/Sep/15  Updated: 20/Sep/15  Resolved: 20/Sep/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: GotoFinal Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: Craftbukkit


 Description   

In trove 3.0.3 we have that epic line of code:
https://bitbucket.org/trove4j/trove/src/a4f8d76a0cfa9e72159268d38e9e8566f4614088/core/src/main/java/gnu/trove/impl/hash/TPrimitiveHash.java?at=master&fileviewer=file-view-default#TPrimitiveHash.java-97
So if we create like new IntIntMap with size of 1000 and loadfactor of 0.1, instead of creating good optimized map for ~1k elements with two 1k arrays of ints for keys and values, we got two huge 10k int arrays.

Fun fact: there is no fixed version in maven repo, but it is fixed in code.

http://imgur.com/Oe2tXLQ

Repo: http://mvnrepository.com/artifact/net.sf.trove4j/trove4j



 Comments   
Comment by md_5 [ 20/Sep/15 ]

We can't easily address this without a fixed version in maven central. Unless you can show that it affects Spigot, it is a wontfix anyway, plugins should not depend on implementation libraries.

Comment by GotoFinal [ 20/Sep/15 ]

... wrong repo, awww...., sorry for that, I didn't see that buildtools were selected ;/

Generated at Tue Apr 08 01:20:42 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.