diff a/src/hotspot/share/runtime/jniHandles.hpp b/src/hotspot/share/runtime/jniHandles.hpp --- a/src/hotspot/share/runtime/jniHandles.hpp +++ b/src/hotspot/share/runtime/jniHandles.hpp @@ -138,11 +138,11 @@ private: enum SomeConstants { block_size_in_oops = 32 // Number of handles per handle block }; - oop _handles[block_size_in_oops]; // The handles + uintptr_t _handles[block_size_in_oops]; // The handles int _top; // Index of next unused handle JNIHandleBlock* _next; // Link to next block // The following instance variables are only used by the first block in a chain. // Having two types of blocks complicates the code and the space overhead in negligible. @@ -146,11 +146,11 @@ // The following instance variables are only used by the first block in a chain. // Having two types of blocks complicates the code and the space overhead in negligible. JNIHandleBlock* _last; // Last block in use JNIHandleBlock* _pop_frame_link; // Block to restore on PopLocalFrame call - oop* _free_list; // Handle free list + uintptr_t* _free_list; // Handle free list int _allocate_before_rebuild; // Number of blocks to allocate before rebuilding free list // Check JNI, "planned capacity" for current frame (or push/ensure) size_t _planned_capacity;