RFR (S): 8199567: [Nestmates] Cleanup instanceKlass.cpp (original) (raw)
David Holmes david.holmes at oracle.com
Tue Oct 23 12:36:38 UTC 2018
- Previous message: RFR (S): 8199567: [Nestmates] Cleanup instanceKlass.cpp
- Next message: RFR (S): 8199567: [Nestmates] Cleanup instanceKlass.cpp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Lois,
On 23/10/2018 10:14 PM, Lois Foltan wrote:
On 10/22/2018 11:43 PM, David Holmes wrote:
Bug: https://bugs.openjdk.java.net/browse/JDK-8199567 Webrev: http://cr.openjdk.java.net/~dholmes/8199567/webrev/
This is a simple "cleanup" previously suggested by John Rose for checking nest membership. Rather than checking for name equality and then checking the loaded class, we check if there's a loaded class first and if not fallback to the name check. This favours the case where the nestmate classes are already resolved and loaded. Hi David, Looks good. One comment:
Thanks for looking at it!
oops/instanceKlass.cpp: - line #173: Consider changing the if conditional to "if (constants->tagat(cpindex).isklass())"
I believe the "isklass()" method is the preferred way to compare a tag to JVMCONSTANTClass.
Sure - webrev updated:
http://cr.openjdk.java.net/~dholmes/8199567/webrev.v2/
Thanks, David
Thanks, Lois
There was no observable performance difference. Testing: mach5 tiers 1-3 including nestmate tests Thanks, David
- Previous message: RFR (S): 8199567: [Nestmates] Cleanup instanceKlass.cpp
- Next message: RFR (S): 8199567: [Nestmates] Cleanup instanceKlass.cpp
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]