mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8026478: -XX:+VerifyAdapterSharing is broken
Fix by considering all checks in StubRoutines Reviewed-by: kvn, twisti
This commit is contained in:
parent
2656f6d603
commit
0679f774af
2 changed files with 35 additions and 41 deletions
|
@ -612,9 +612,7 @@ class AdapterHandlerEntry : public BasicHashtableEntry<mtCode> {
|
|||
// Captures code and signature used to generate this adapter when
|
||||
// verifing adapter equivalence.
|
||||
unsigned char* _saved_code;
|
||||
int _code_length;
|
||||
BasicType* _saved_sig;
|
||||
int _total_args_passed;
|
||||
int _saved_code_length;
|
||||
#endif
|
||||
|
||||
void init(AdapterFingerPrint* fingerprint, address i2c_entry, address c2i_entry, address c2i_unverified_entry) {
|
||||
|
@ -624,9 +622,7 @@ class AdapterHandlerEntry : public BasicHashtableEntry<mtCode> {
|
|||
_c2i_unverified_entry = c2i_unverified_entry;
|
||||
#ifdef ASSERT
|
||||
_saved_code = NULL;
|
||||
_code_length = 0;
|
||||
_saved_sig = NULL;
|
||||
_total_args_passed = 0;
|
||||
_saved_code_length = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -639,7 +635,6 @@ class AdapterHandlerEntry : public BasicHashtableEntry<mtCode> {
|
|||
address get_i2c_entry() const { return _i2c_entry; }
|
||||
address get_c2i_entry() const { return _c2i_entry; }
|
||||
address get_c2i_unverified_entry() const { return _c2i_unverified_entry; }
|
||||
|
||||
address base_address();
|
||||
void relocate(address new_base);
|
||||
|
||||
|
@ -651,8 +646,8 @@ class AdapterHandlerEntry : public BasicHashtableEntry<mtCode> {
|
|||
|
||||
#ifdef ASSERT
|
||||
// Used to verify that code generated for shared adapters is equivalent
|
||||
void save_code(unsigned char* code, int length, int total_args_passed, BasicType* sig_bt);
|
||||
bool compare_code(unsigned char* code, int length, int total_args_passed, BasicType* sig_bt);
|
||||
void save_code (unsigned char* code, int length);
|
||||
bool compare_code(unsigned char* code, int length);
|
||||
#endif
|
||||
|
||||
//virtual void print_on(outputStream* st) const; DO NOT USE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue