RFR (S) CR 7177472: JSR292: MethodType interning penalizes scalability (original) (raw)
Aleksey Shipilev aleksey.shipilev at oracle.com
Thu Jun 13 19:09:28 UTC 2013
- Previous message: RFR (S) CR 7177472: JSR292: MethodType interning penalizes scalability
- Next message: RFR (S) CR 7177472: JSR292: MethodType interning penalizes scalability
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 06/13/2013 09:51 PM, Christian Thalinger wrote:
While preparing the push I noticed the new code gives a warning:
src/share/classes/java/lang/invoke/MethodType.java:1106: warning: [unchecked] unchecked cast T that = ((WeakEntry) obj).get(); ^ required: WeakEntry found: Object where T is a type-variable: T extends Object declared in class WeakEntry 1 warning Could you fix that, please?
Can't reproduce that warning in my builds (are you having -Xlint:unchecked enabled in the new build system somehow?), but good catch! There is the preceding instanceof check that ought to make this cast safe now. Also we don't need to declare locals as T in equals().
Please try this: http://cr.openjdk.java.net/~shade/7177472/webrev.03/
This seems a trivial change, so I only tested java/lang/invoke regression tests afterwards, those are OK.
-Aleksey.
- Previous message: RFR (S) CR 7177472: JSR292: MethodType interning penalizes scalability
- Next message: RFR (S) CR 7177472: JSR292: MethodType interning penalizes scalability
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]