mridulm commented on PR #53193:
URL: https://github.com/apache/spark/pull/53193#issuecomment-3619846743

   hmm, I cant seem to reproduce it with the test you have provided @cxzl25 ...
   ```
   $ ./bin/spark-shell --driver-memory 64g
   <snip>
   Welcome to
         ____              __
        / __/__  ___ _____/ /__
       _\ \/ _ \/ _ `/ __/  '_/
      /___/ .__/\_,_/_/ /_/\_\   version 4.1.0-SNAPSHOT
         /_/
            
   Using Scala version 2.13.16 (OpenJDK 64-Bit Server VM, Java 17.0.17)
   <snip>
   Spark session available as 'spark'.
   
   scala> import com.esotericsoftware.kryo.util._
   import com.esotericsoftware.kryo.util._
   
   scala> val identityObjectIntMap = new 
IdentityObjectIntMap[String](1073741824, 0.8f)
   val identityObjectIntMap: 
com.esotericsoftware.kryo.util.IdentityObjectIntMap[String] = {}
   
   scala> identityObjectIntMap.put("k1", 1)
   
   scala> identityObjectIntMap.clear((1073741824) << 1)
   java.lang.NegativeArraySizeException: -2147483645
     at 
com.esotericsoftware.kryo.util.IdentityObjectIntMap.resize(IdentityObjectIntMap.java:542)
     at 
com.esotericsoftware.kryo.util.IdentityObjectIntMap.clear(IdentityObjectIntMap.java:461)
     ... 42 elided
   
   scala> identityObjectIntMap.clear(2048)
   
   scala> identityObjectIntMap.put("k1", 1)
   
   scala> 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to