Performance regression in java.util.zip.Deflater
Clemens Eisserer
linuxhippy at gmail.com
Fri Dec 21 01:02:52 UTC 2007
Hello again,
> jdk/test/java/util/zip/FlaterTest.java can be used to compare different JVMs;
> I'm sorry but I don't think we have a better test. See also the code in
> 6364346 and/or 6507183.
Sorry if that sounds a bit dumb, how can I access
jdk/test/java/util/zip/FlaterTest.java?
I rewrote the native method a bit (because I thought it was messy), so
I am afraid I destoyed some cases - are there also correctness
testcases?
> I don't see a block in the ArrayRegion functions (a little surprisingly):
> hotspot/src/share/vm/prims/jni.cpp
> (Search for just "arrayregion"). Compare the array region function body with
> the primitivearraycritical function body; the latter obviously interacts with GC.
I am no expert, but doesn't each jni-function block the jvm, like a
synchronized modifier in java? I thought for this are
JNI_ENTRY/JNI_END macros?
I can be wrong of course, its just a guess.
> I'm no expert here! See 6186200's discussion of GC & critical sections.
Thanks a lot, very interesting :)
lg Clemens
Btw. No need to stress or hurry, its just a "holiday-fun-bugfix"
More information about the core-libs-dev
mailing list