comparison src/share/vm/oops/instanceKlass.hpp @ 22933:1a9c5e6e13b7

8067662: "java.lang.NullPointerException: Method name is null" from StackTraceElement.<init> Summary: use method cpref and klass version to provide meaningful methods name in stacktraces Reviewed-by: coleenp, dcubed
author sspitsyn
date Wed, 08 Apr 2015 14:20:09 -0700
parents fdde6a70ea85
children d8f133adf05d
comparison
equal deleted inserted replaced
22932:04e84c0579be 22933:1a9c5e6e13b7
356 356
357 // methods 357 // methods
358 Array<Method*>* methods() const { return _methods; } 358 Array<Method*>* methods() const { return _methods; }
359 void set_methods(Array<Method*>* a) { _methods = a; } 359 void set_methods(Array<Method*>* a) { _methods = a; }
360 Method* method_with_idnum(int idnum); 360 Method* method_with_idnum(int idnum);
361 Method* method_with_orig_idnum(int idnum);
362 Method* method_with_orig_idnum(int idnum, int version);
361 363
362 // method ordering 364 // method ordering
363 Array<int>* method_ordering() const { return _method_ordering; } 365 Array<int>* method_ordering() const { return _method_ordering; }
364 void set_method_ordering(Array<int>* m) { _method_ordering = m; } 366 void set_method_ordering(Array<int>* m) { _method_ordering = m; }
365 void copy_method_ordering(intArray* m, TRAPS); 367 void copy_method_ordering(intArray* m, TRAPS);
656 } 658 }
657 GrowableArray<PreviousVersionNode *>* previous_versions() const { 659 GrowableArray<PreviousVersionNode *>* previous_versions() const {
658 return _previous_versions; 660 return _previous_versions;
659 } 661 }
660 662
663 InstanceKlass* get_klass_version(int version);
661 static void purge_previous_versions(InstanceKlass* ik); 664 static void purge_previous_versions(InstanceKlass* ik);
662 665
663 // JVMTI: Support for caching a class file before it is modified by an agent that can do retransformation 666 // JVMTI: Support for caching a class file before it is modified by an agent that can do retransformation
664 void set_cached_class_file(JvmtiCachedClassFileData *data) { 667 void set_cached_class_file(JvmtiCachedClassFileData *data) {
665 _cached_class_file = data; 668 _cached_class_file = data;